|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.trinity.cs.gamecore.basic.BasicEntityImpl
public class BasicEntityImpl
Method Summary | |
---|---|
boolean |
followLinks()
Tells if this entity should follow links from one screen to another. |
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.Image |
getImage()
This returns the image that should be drawn for this entity. |
Location<BasicBlock,BasicEntity> |
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<BasicBlock,BasicEntity> loc)
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 |
Method Detail |
---|
public void update(int time)
GameEntity
update
in interface GameEntity<BasicBlock,BasicEntity>
time
- This is the current time in the game.public int getUpdateTime()
GameEntity
getUpdateTime
in interface GameEntity<BasicBlock,BasicEntity>
public Location<BasicBlock,BasicEntity> getLocation()
GameEntity
getLocation
in interface GameEntity<BasicBlock,BasicEntity>
public void setLocation(Location<BasicBlock,BasicEntity> loc)
GameEntity
setLocation
in interface GameEntity<BasicBlock,BasicEntity>
public java.awt.Image getImage()
GameEntity
getImage
in interface GameEntity<BasicBlock,BasicEntity>
public int partialSizeX()
GameEntity
partialSizeX
in interface GameEntity<BasicBlock,BasicEntity>
public int partialSizeY()
GameEntity
partialSizeY
in interface GameEntity<BasicBlock,BasicEntity>
public java.awt.Container getEditPropertiesPanel()
GameEntity
getEditPropertiesPanel
in interface GameEntity<BasicBlock,BasicEntity>
public boolean followLinks()
GameEntity
followLinks
in interface GameEntity<BasicBlock,BasicEntity>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |