games.stickfighter
Class LookButNoTouchCharacter

java.lang.Object
  extended by vooga.gameEngine.game.GameRelatedObject
      extended by vooga.gameEngine.item.GameItem
          extended by vooga.physicsEngine.PhysicalItem
              extended by games.stickfighter.LookButNoTouchCharacter
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Renderable>, Renderable, Tangible
Direct Known Subclasses:
Character

public class LookButNoTouchCharacter
extends PhysicalItem

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.

Author:
Lucas Best
See Also:
Serialized Form

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

LookButNoTouchCharacter

public LookButNoTouchCharacter()
Construct a new Character with full health and no powerup

Method Detail

getHealth

public int getHealth()
Gets the current health of the Character.

Returns:

isHuman

public boolean isHuman()
Gets whether the Character is a human player or a computer player.

Returns:

getTeamNumber

public int getTeamNumber()
Gets the current team number for which the Character is playing.

Returns:

hasPowerUp

public boolean hasPowerUp()
Gets whether the Character currently holds a power-up.

Returns: