|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.trinity.cs.gamecore.EditorPlayer
public class EditorPlayer
This class is just used by the editor to help it interact with the MainDisplay class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.trinity.cs.gamecore.Player |
---|
Player.GameStatus, Player.PanelLoc |
Constructor Summary | |
---|---|
EditorPlayer()
|
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 |
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. |
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 location)
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 EditorPlayer()
Method Detail |
---|
public Player.GameStatus gameStatus()
Player
gameStatus
in interface Player
public java.awt.Container getGameStatusPanel(Player.PanelLoc loc)
Player
getGameStatusPanel
in interface Player
loc
- This integer specifies which side of the display the panel is being requested for.
public void update(int time)
GameEntity
update
in interface GameEntity
time
- This is the current time in the game.public boolean followLinks()
GameEntity
followLinks
in interface GameEntity
public int getUpdateTime()
GameEntity
getUpdateTime
in interface GameEntity
public Location getLocation()
GameEntity
getLocation
in interface GameEntity
public void setLocation(Location location)
GameEntity
setLocation
in interface GameEntity
public java.awt.Image getImage()
GameEntity
getImage
in interface GameEntity
public int partialSizeX()
GameEntity
partialSizeX
in interface GameEntity
public int partialSizeY()
GameEntity
partialSizeY
in interface GameEntity
public java.awt.Container getEditPropertiesPanel()
GameEntity
getEditPropertiesPanel
in interface GameEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |