com.brackeen.javagamebook.shooter3D
Class Bot

java.lang.Object
  extended bycom.brackeen.javagamebook.game.GameObject
      extended bycom.brackeen.javagamebook.shooter3D.Bot

public class Bot
extends GameObject

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

Bot

public Bot(PolygonGroup polygonGroup)
Method Detail

notifyVisible

public void notifyVisible(boolean visible)

update

public void update(GameObject player,
                   long elapsedTime)
Description copied from class: GameObject
If this GameObject is in the active state, this method updates it's PolygonGroup. Otherwise, this method does nothing.

Overrides:
update in class GameObject