|
||||||||||
| 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.Room
public class Room
Tato trida definuje vlastnosti mistnosti ve vytvorenem svete.
| Constructor Summary | |
|---|---|
Room(int x,
int y,
int r)
Konstruktor - nastavuje souradnice umisteni dane mistnosti v editoru. |
|
| Method Summary | |
|---|---|
int |
getCenterX()
Vraci stred objektu v ose X. |
int |
getCenterY()
Vraci stred objektu v ose Y. |
GameEntity |
getFirstRoom()
V teto tride nepotrebuji tuto vlastnost, proto vratime null. |
java.lang.Object |
getGraphicsObject()
Vraci grafickou reprezentaci mistnosti v editoru. |
GameEntity |
getSecondRoom()
V teto tride nepotrebuji tuto vlastnost, proto vratime null. |
void |
showGraphicsObject(java.awt.Graphics2D g2)
Zobrazi danou mistnost 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 Room(int x,
int y,
int r)
x - int : X-ova souradnice mistnosti.y - int : Y-ova souradnice mistnosti.r - int : Polomer kruznice - urcuje velikost mistnosti.| Method Detail |
|---|
public final int getCenterX()
getCenterX in class GameEntitypublic final int getCenterY()
getCenterY in class GameEntitypublic final java.lang.Object getGraphicsObject()
getGraphicsObject in class GameEntitypublic final void showGraphicsObject(java.awt.Graphics2D g2)
showGraphicsObject in class GameEntityg2 - Graphics2D : Graficky kontext, do ktereho se bude kreslit.public final GameEntity getFirstRoom()
getFirstRoom in class GameEntitypublic final GameEntity getSecondRoom()
getSecondRoom in class GameEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||