예제 #1
0
//-------------------------------------------------------------------------
void CardMovePlayerToPosition::action(
        PlayerManager &i_players
        )
{
    i_players.setPosition(m_newPosition);
    std::cout<< "Move " << i_players.getName() << " to " << i_players.getPosition() << " position." << std::endl;
}
예제 #2
0
파일: Board.cpp 프로젝트: cblop/monopoly
//-------------------------------------------------------------------------
void Board::action(PlayerManager &i_players)
{
    int currentTile = i_players.getPosition();
    std::cout<<"Calling Action\n";
    m_tiles[currentTile]->action(i_players);
}
예제 #3
0
파일: Board.cpp 프로젝트: cblop/monopoly
//-------------------------------------------------------------------------
void Board::action(PlayerManager &i_players)
{
    int currentTile = i_players.getPosition();
    m_tiles[currentTile]->action(i_players);
}