Class AlienShotEntity
java.lang.Object
model.Entity
model.AnimatedEntity
model.ShotEntity
model.AlienShotEntity
- All Implemented Interfaces:
EventListener,EntityEventListener
Tagging class to distinguish an Alien shot from a ship shot
-
Field Summary
Fields inherited from class model.AnimatedEntity
animated, ANIMATION_SPEED, animationSpritesList, currentMoveSprite, currentSprite, millisLastRotatedFields inherited from class model.Entity
canMoveDown, canMoveLeft, canMoveRight, canMoveUp, currentState, DEF_REF_TO_SPRITE_IMAGE_FILE, DEF_X, DEF_Y, DEFAULT_DEATH_RATE, dx, dy, dyingSpritesList, justEnteredState, LIFE_LEFT_TOLERANCE, lifeLeft, sound, sprite, x, y -
Constructor Summary
ConstructorsConstructorDescriptionAlienShotEntity(int x, int y, double yMoveSpeed) Create a new shot from an alien -
Method Summary
Methods inherited from class model.ShotEntity
collisionHasOccuredMethods inherited from class model.AnimatedEntity
getAnimationSpritesList, setAnimated, setAnimationSpritesList, updateStateMethods inherited from class model.Entity
addEntityEventListener, collidesWith, collisionArea, draw, entityDied, entityMoved, equals, fireCollisionHasOccured, fireEntityDied, fireEntityMoved, getCurrentState, getDyingSpritesList, getHorizontalMovement, getLifeLeft, getSound, getSprite, getVerticalMovement, getX, getY, hashCode, move, moveTo, removeEntityEventListener, setCurrentState, setDyingSpritesList, setHorizontalMovement, setLifeLeft, setSound, setSprite, setVerticalMovement, toString
-
Constructor Details
-
AlienShotEntity
public AlienShotEntity(int x, int y, double yMoveSpeed) Create a new shot from an alien- Parameters:
x- The initial x location of the shoty- The initial y location of the shotgame- The game in which the shot has been createdsprite- The sprite representing this shot
-