|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs.pancava.caltha.worlds.GameEntity
cs.pancava.caltha.worlds.Route
public class Route
Tato trida definuje vlastnosti spojų (cest) mezi jednotlivymi mistnosti ve vytvorenem svete.
| Constructor Summary | |
|---|---|
Route(GameEntity ge1,
GameEntity ge2)
Konstruktor vytvarejici spoj (cestu) mezi dvema objekty (mistnostmi). |
|
| Method Summary | |
|---|---|
int |
getCenterX()
Vraci stred objektu v ose X. |
int |
getCenterY()
Vraci stred objektu v ose Y. |
GameEntity |
getFirstRoom()
Vrati prvni mistnost, ktera je spojena s druhou mistnosti. |
java.lang.Object |
getGraphicsObject()
Vraci grafickou reprezentaci spoje (cesty) v editoru. |
GameEntity |
getSecondRoom()
Vrati druhou mistnost, ktera je spojena s prvni mistnosti. |
void |
showGraphicsObject(java.awt.Graphics2D g2)
Zobrazi dany spoj (cestu) v editoru. |
| Methods inherited from class cs.pancava.caltha.worlds.GameEntity |
|---|
downID, getId, getLocationX, getLocationY, getType, isSeleted, resetCounter, setLocationX, setLocationY, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Route(GameEntity ge1,
GameEntity ge2)
ge1 - : Herni objekt (prvni), ktery spojujeme.ge2 - : Herni objekt (druhy), ktery spojujeme.| Method Detail |
|---|
public final int getCenterX()
getCenterX in class GameEntitypublic final int getCenterY()
getCenterY in class GameEntitypublic final GameEntity getFirstRoom()
getFirstRoom in class GameEntitypublic final java.lang.Object getGraphicsObject()
getGraphicsObject in class GameEntitypublic final GameEntity getSecondRoom()
getSecondRoom in class GameEntitypublic final void showGraphicsObject(java.awt.Graphics2D g2)
showGraphicsObject in class GameEntityg2 - Graphics2D : Graficky kontext, do ktereho se bude kreslit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||