|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.trinity.cs.gamecore.basic.BasicBlock
public class BasicBlock
This is a basic implementation of the Block interface. Starting with assignment 2 you will create your own implementations of Block and this won't be used. Notice the generic structure.
The Image is static because all the blocks share the same image. If you have different images for your blocks then this shouldn't be static. The Image is transient because images can't be saved through serialization which will cause problems if you use the ScreenEditor.
Constructor Summary | |
---|---|
BasicBlock()
|
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<BasicBlock,BasicEntity> |
getLinkLocation()
Returns the location that this block links to. |
void |
setLinkLocation(Location<BasicBlock,BasicEntity> linkLocation)
Sets the location that this block links to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicBlock()
Method Detail |
---|
public java.awt.Image getImage()
Block
getImage
in interface Block<BasicBlock,BasicEntity>
public java.awt.Container getEditPropertiesPanel()
Block
getEditPropertiesPanel
in interface Block<BasicBlock,BasicEntity>
public Location<BasicBlock,BasicEntity> getLinkLocation()
Block
getLinkLocation
in interface Block<BasicBlock,BasicEntity>
public void setLinkLocation(Location<BasicBlock,BasicEntity> linkLocation)
Block
setLinkLocation
in interface Block<BasicBlock,BasicEntity>
linkLocation
- The location the block should link to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |