|
||||||||||
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
games.stickfighter.Character
public abstract class Character
Character
extends LookButNoTouchCharacter
and implements
the movement controls of the character. This class allows a user to control a
character in the game.
Field Summary |
---|
Fields inherited from class vooga.physicsEngine.PhysicalItem |
---|
parameters |
Constructor Summary | |
---|---|
Character()
|
Method Summary | |
---|---|
void |
attack(int attackType)
Causes the Character to attack. |
void |
defend()
Puts the Character into a defensive position. |
void |
jump()
Causes the character to jump. |
void |
move(boolean direction)
Move the character LEFT or RIGHT in the 2d space. |
void |
usePowerUp()
Uses a power-up. |
Methods inherited from class games.stickfighter.LookButNoTouchCharacter |
---|
getHealth, getTeamNumber, hasPowerUp, isHuman |
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 Character()
Method Detail |
---|
public void jump()
public void move(boolean direction)
direction
- public void attack(int attackType)
attackType
- public void defend()
public void usePowerUp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |