|
||||||||||
| 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 Playerpublic java.awt.Container getGameStatusPanel(Player.PanelLoc loc)
Player
getGameStatusPanel in interface Playerloc - This integer specifies which side of the display the panel is being requested for.
public void update(int time)
GameEntity
update in interface GameEntitytime - This is the current time in the game.public boolean followLinks()
GameEntity
followLinks in interface GameEntitypublic int getUpdateTime()
GameEntity
getUpdateTime in interface GameEntitypublic Location getLocation()
GameEntity
getLocation in interface GameEntitypublic void setLocation(Location location)
GameEntity
setLocation in interface GameEntitypublic java.awt.Image getImage()
GameEntity
getImage in interface GameEntitypublic int partialSizeX()
GameEntity
partialSizeX in interface GameEntitypublic int partialSizeY()
GameEntity
partialSizeY in interface GameEntitypublic 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 | |||||||||