|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.gameEngine.game.GameRelatedObject
vooga.gameEngine.item.GameItem
vooga.physicsEngine.PhysicalItem
games.stickfighter.LookButNoTouchCharacter
public class LookButNoTouchCharacter
The LookButNoTouchCharacter
class should be used by the AI to get
information about other Characters in the level. This class provides
get methods that give all relevant information about where a
Character is and what it is doing.
Field Summary |
---|
Fields inherited from class vooga.physicsEngine.PhysicalItem |
---|
parameters |
Constructor Summary | |
---|---|
LookButNoTouchCharacter()
Construct a new Character with full health and no powerup |
Method Summary | |
---|---|
int |
getHealth()
Gets the current health of the Character. |
int |
getTeamNumber()
Gets the current team number for which the Character is playing. |
boolean |
hasPowerUp()
Gets whether the Character currently holds a power-up. |
boolean |
isHuman()
Gets whether the Character is a human player or a computer player. |
Methods inherited from class vooga.physicsEngine.PhysicalItem |
---|
applyAngularImpulse, applyImpulse, getPhysicsOn, setConstantForce, setPhysicsOn, setPosition, setPosition |
Methods inherited from class vooga.gameEngine.item.GameItem |
---|
compareTo, getPosition, getRotation, getShape, getSize, getTexture, isVisible, move, resize, rotate, setPosition, setRotation, setSize, setVisibility |
Methods inherited from class vooga.gameEngine.game.GameRelatedObject |
---|
addEventListener, clearListeners, equals, fire, fire, fire, getEventListeners, getID, getListenerCount, removeEventListener |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookButNoTouchCharacter()
Method Detail |
---|
public int getHealth()
public boolean isHuman()
public int getTeamNumber()
public boolean hasPowerUp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |