示例#1
0
PlayerArmyPtr PlayerArmy::create(EmpirePtr empire, CityPtr city)
{
    PlayerArmyPtr ret( new PlayerArmy( empire ) );
    ret->_d->base = city;
    ret->setLocation( city->location() - Point( 0, 10 ));
    ret->drop();

    return ret;
}