|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.trinity.cs.gamecore.madison.MadisonPlayer
public class MadisonPlayer
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.trinity.cs.gamecore.Player |
---|
Player.GameStatus, Player.PanelLoc |
Constructor Summary | |
---|---|
MadisonPlayer(Location<MadisonBlock,MadisonEntity> l)
|
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<MadisonBlock,MadisonEntity> |
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 |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
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<MadisonBlock,MadisonEntity> l)
This sets the location of this entity. |
void |
update(int time)
The update method is where any changes to the entity are made. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MadisonPlayer(Location<MadisonBlock,MadisonEntity> l)
Method Detail |
---|
public int getUpdateTime()
GameEntity
getUpdateTime
in interface GameEntity<MadisonBlock,MadisonEntity>
public void update(int time)
GameEntity
update
in interface GameEntity<MadisonBlock,MadisonEntity>
time
- This is the current time in the game.public Location<MadisonBlock,MadisonEntity> getLocation()
GameEntity
getLocation
in interface GameEntity<MadisonBlock,MadisonEntity>
public void setLocation(Location<MadisonBlock,MadisonEntity> l)
GameEntity
setLocation
in interface GameEntity<MadisonBlock,MadisonEntity>
public java.awt.Image getImage()
GameEntity
getImage
in interface GameEntity<MadisonBlock,MadisonEntity>
public int partialSizeX()
GameEntity
partialSizeX
in interface GameEntity<MadisonBlock,MadisonEntity>
public int partialSizeY()
GameEntity
partialSizeY
in interface GameEntity<MadisonBlock,MadisonEntity>
public java.awt.Container getEditPropertiesPanel()
GameEntity
getEditPropertiesPanel
in interface GameEntity<MadisonBlock,MadisonEntity>
public boolean followLinks()
GameEntity
followLinks
in interface GameEntity<MadisonBlock,MadisonEntity>
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public Player.GameStatus gameStatus()
Player
gameStatus
in interface Player<MadisonBlock,MadisonEntity>
public java.awt.Container getGameStatusPanel(Player.PanelLoc loc)
Player
getGameStatusPanel
in interface Player<MadisonBlock,MadisonEntity>
loc
- This integer specifies which side of the display the panel is being requested for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |