|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.golden.gamedev.object.Sprite moagg.model.object.sprite.AbstractMoaggSprite moagg.model.object.sprite.Tank
public class Tank
Field Summary |
---|
Fields inherited from class com.golden.gamedev.object.Sprite |
---|
defaultCollisionShape, height, width |
Constructor Summary | |
---|---|
Tank()
|
Method Summary | |
---|---|
void |
destroy()
Calling this method will initiate the destruction of this object. |
int |
getHealth()
|
int |
getMaxX()
|
int |
getMinX()
|
int |
getScorePoints()
|
TankType |
getTankType()
|
Weapon |
getWeapon()
|
void |
setDestroyable(Destroyable destroyable)
|
void |
setHealth(int health)
|
void |
setMaxX(int maxX)
|
void |
setMinX(int minX)
|
protected void |
setState(moagg.model.object.sprite.Tank.State state)
|
void |
setType(TankType type)
|
void |
setWeapon(Weapon weapon)
|
void |
update(long elapsedTime)
|
Methods inherited from class moagg.model.object.sprite.AbstractMoaggSprite |
---|
addSpeed, getPositionRectangle, getRGB, getSpeed, hide, isVisible, setRGB, setSpeed, setVisible, show |
Methods inherited from class com.golden.gamedev.object.Sprite |
---|
addHorizontalSpeed, addVerticalSpeed, forceX, forceY, getBackground, getCenterX, getCenterY, getDataID, getDefaultCollisionShape, getDistance, getHeight, getHorizontalSpeed, getID, getImage, getLayer, getOldX, getOldY, getScreenX, getScreenY, getVerticalSpeed, getWidth, getX, getY, isActive, isImmutable, isOnScreen, isOnScreen, move, moveTo, moveX, moveY, render, render, setActive, setBackground, setDataID, setHorizontalSpeed, setID, setImage, setImmutable, setLayer, setLocation, setMovement, setSpeed, setVerticalSpeed, setX, setY, updateMovement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface moagg.model.object.MoaggGameObject |
---|
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show |
Methods inherited from interface moagg.model.object.MoaggGameObject |
---|
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show |
Methods inherited from interface moagg.model.object.MoaggGameObject |
---|
getHeight, getID, getPositionRectangle, getSpeed, getWidth, getX, getY, hide, isVisible, setID, setSpeed, setSpeed, setX, setY, show |
Constructor Detail |
---|
public Tank()
Method Detail |
---|
public void setMinX(int minX)
public int getMinX()
public void setMaxX(int maxX)
public int getMaxX()
public void setType(TankType type)
public TankType getTankType()
public void setWeapon(Weapon weapon)
setWeapon
in interface ShooterObject
public Weapon getWeapon()
getWeapon
in interface ShooterObject
public void update(long elapsedTime)
update
in class com.golden.gamedev.object.Sprite
public void setDestroyable(Destroyable destroyable)
public int getHealth()
getHealth
in interface DestroyableObject
public void setHealth(int health)
setHealth
in interface DestroyableObject
health
- The new amount of health points to set for this object.public void destroy()
DestroyableObject
destroy
in interface DestroyableObject
public int getScorePoints()
getScorePoints
in interface DestroyableObject
protected void setState(moagg.model.object.sprite.Tank.State state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |