//-------------------------------------------------------------------------
void CardMovePlayerToPosition::action(
        PlayerManager &i_players
        )
{
    i_players.setPosition(m_newPosition);
    std::cout<< "Move " << i_players.getName() << " to " << i_players.getPosition() << " position." << std::endl;
}
Esempio n. 2
0
//-------------------------------------------------------------------------
void Board::action(PlayerManager &i_players)
{
    int currentTile = i_players.getPosition();
    std::cout<<"Calling Action\n";
    m_tiles[currentTile]->action(i_players);
}
Esempio n. 3
0
//-------------------------------------------------------------------------
void Board::action(PlayerManager &i_players)
{
    int currentTile = i_players.getPosition();
    m_tiles[currentTile]->action(i_players);
}