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