posted 5 years ago
So I'm working on a game which has to mimic a space ship with aliens and humans on board and the humans have to escape from the aliens and the aliens have to try to eat the humans. Aliens and humans players get to move around the space ship my means of a piece with their player numbers written on it!
The space ship is made up of cells, called sectors, which I did build with a hexagon, every sector has a name and a coordinate and if a player moves into another cell/sector it's present cell/sector should be updated.
For a reason or so it seems there is a rearrangement of the coordinates of the cells/sectors after a player moves...this error is soo difficult to explain so I did create a miniature project of the original one with every minimal feature necessary to mimic perfectly the original one and I'm going to posts all the classes here so that any one who wants to help me solve the situation can can load it and build it and try it and see the problem I'm talking about...unfortunately I think this is the only way I can really get help solving the problem
so here are the classes..
the problem/error I'm having is made clear on line 104 in the piece class where there is some printing to console to make it clear that the coordinates/nodes id being printed to the console is very different from that being seen in the gui /screen
//MAIN
//GAME CLASS
//SHIP ABSTRACT CLASS
//FERMI spaceship class
PLAYER CLASS
PIECE CLASS
enum PLAYERCHARACTER
SECTOR CLASS
enum SECTORTYPE