|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.trinity.cs.gamecore.StickPlayer<B,E>
public class StickPlayer<B extends Block<B,E>,E extends GameEntity<B,E>>
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.trinity.cs.gamecore.Player |
---|
Player.GameStatus, Player.PanelLoc |
Constructor Summary | |
---|---|
StickPlayer(Location<B,E> loc)
|
Method Summary | |
---|---|
boolean |
followLinks()
Tells if this entity should follow links from one screen to another. |
Player.GameStatus |
gameStatus()
Returns one of the three constants above telling what the status of the game is. |
java.awt.Container |
getEditPropertiesPanel()
This method should return a java.awt.Container with GUI components set up in it to edit the properties of this entity. |
java.awt.Container |
getGameStatusPanel(Player.PanelLoc loc)
This method returns a GUI container that shows extra information in your game. |
java.awt.Image |
getImage()
This returns the image that should be drawn for this entity. |
Location<B,E> |
getLocation()
This returns the location of this entity. |
int |
getUpdateTime()
This method returns the next time at which the entity should have its update method called. |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
I'm not using this because it is linked to the key repeat rate. |
int |
partialSizeX()
This method returns how many partials across the entity should be. |
int |
partialSizeY()
This method returns how many partials up and down the entity should be. |
void |
setLocation(Location<B,E> loc)
This sets the location of this entity. |
void |
update(int time)
This is the method that should be called to update the player. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StickPlayer(Location<B,E> loc)
Method Detail |
---|
public Player.GameStatus gameStatus()
Player
gameStatus
in interface Player<B extends Block<B,E>,E extends GameEntity<B,E>>
public java.awt.Container getGameStatusPanel(Player.PanelLoc loc)
Player
getGameStatusPanel
in interface Player<B extends Block<B,E>,E extends GameEntity<B,E>>
loc
- This integer specifies which side of the display the panel is being requested for.
public void update(int time)
update
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
time
- This is the time for the tick when this ic called.public int getUpdateTime()
GameEntity
getUpdateTime
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
public Location<B,E> getLocation()
GameEntity
getLocation
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
public void setLocation(Location<B,E> loc)
GameEntity
setLocation
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
public java.awt.Image getImage()
GameEntity
getImage
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
public int partialSizeX()
GameEntity
partialSizeX
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
public int partialSizeY()
GameEntity
partialSizeY
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
public java.awt.Container getEditPropertiesPanel()
GameEntity
getEditPropertiesPanel
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public boolean followLinks()
GameEntity
followLinks
in interface GameEntity<B extends Block<B,E>,E extends GameEntity<B,E>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |