|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.game.GameObject
com.brackeen.javagamebook.shooter3D.Bot
The Bot game object is a small static bot with a turret that turns to face the player.
Field Summary |
Fields inherited from class com.brackeen.javagamebook.game.GameObject |
STATE_ACTIVE, STATE_DESTROYED, STATE_IDLE |
Constructor Summary | |
Bot(PolygonGroup polygonGroup)
|
Method Summary | |
void |
notifyVisible(boolean visible)
|
void |
update(GameObject player,
long elapsedTime)
If this GameObject is in the active state, this method updates it's PolygonGroup. |
Methods inherited from class com.brackeen.javagamebook.game.GameObject |
addListener, getBounds, getCeilHeight, getFloorHeight, getListener, getLocation, getName, getPolygonGroup, getSpawns, getTransform, getX, getY, getZ, isActive, isDestroyed, isFlying, isIdle, isJumping, isMakingNoise, makeNoise, removeListener, sendTouchNotifications, setCeilHeight, setFloorHeight, setFlying, setJumping, setState |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Bot(PolygonGroup polygonGroup)
Method Detail |
public void notifyVisible(boolean visible)
public void update(GameObject player, long elapsedTime)
GameObject
update
in class GameObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |