Hi,
Ive just started a new board game development. And, in my first step appears a question, who will control the player movement, the Game Class or the Player Class?
ie:
Im at slot #3, i roll the dices and get 4, my next slot will be #7. What is better?
Solution #1 ----------------
class Game.movePlayer()
{
NEXT_SLOT.addChild(CURRENT_PLAYER);
}
or
Solution #2 ----------------
class Player.map = new BoardMap();
Player.movePlayer()
{
map.setPlayerAtSlot(NEXT_SLOT);
}
or
some other solution? I dont know too much about class designs so, i usually get a lot of rework cause i couldnt preview the whole game at begining.
IMO, none of mine solutions its the best one⦠its just the only way that ive thought to get around of this.
Thanks in advance for your replies.