Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class KingTux extends Creature
- {
- /**
- * Constructor for objects of class KingTux
- */
- public KingTux(double x, double y, double z)
- {
- super(x, y, z);
- // Must use the mutator as the fields have private access
- // in the parent class
- setTexture("models/tux/tux.png");
- setModel("models/tux/tux.obj");
- setScale(3);
- setRotateY(180);
- }
- public void check()
- {
- if (getX() > 59) {
- setX(59);
- } else if (getX() < 10) {
- setX(10);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement