I'm trying to make a turnbased tactics game in javafx (based on Tactics Ogre - The Knight of Lodis), but I'm having some trouble with the basics. I'm trying to follow the MVC pattern but I had to start over three times now.
I'm able to make a grid of tiles, but now I have to put objects on there. Every tile may have multiple objects on it, so I can't use the tiles as keys in a map. Basically I've been thinking about this for weeks now, and I just don't know what methods I should put where, and what kinds of collections I should use. The classes I'm using up till now can be found below. Any help is greatly appreciated.
|Location |
|-int:x|
|-int:y |
|-int:z |
|+getters,setters, constr|
|SpriteLoc |
|-Node:sprite |
|-double:relativeX |
|-double:relativeY |
|+getters,setters, constr|
|RenderObject |
|-List< SpriteLoc >: sprites |
|-Location: location |
|-(SpriteLoc: primary) |
|+getters,setters, constr |
|Tile extends/implements RenderObject |
| IDK |
|GameObject ext/impl RenderObject |
| IDK |
|Grid |
| COLLECTION OF RENDEROBJECTS (IDK WHICH) |
|+void:UpdateTranslation(RenderObject) |
|+void:setLocation(RenderObject, Location) | <- Still thinking about this placement
|+Collection:createTiles(mapSize(^2)) |
Aucun commentaire:
Enregistrer un commentaire