|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Block<B extends Block<B,E>,E extends GameEntity<B,E>>
This interface will be implemented for any class that should represent a block on a screen in the game. They basically provide a background upon which the player interacts with things.
This class is a generic that takes the general block type and the general entity type for each game.
Method Summary | |
---|---|
java.awt.Container |
getEditPropertiesPanel()
This method returns a panel that should be set up so that users can edit the properties of this block. |
java.awt.Image |
getImage()
This returns the image that should be drawn for this block. |
Location<B,E> |
getLinkLocation()
Returns the location that this block links to. |
void |
setLinkLocation(Location<B,E> location)
Sets the location that this block links to. |
Method Detail |
---|
java.awt.Image getImage()
java.awt.Container getEditPropertiesPanel()
Location<B,E> getLinkLocation()
void setLinkLocation(Location<B,E> location)
location
- The location the block should link to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |