예제 #1
0
CatapultStone::CatapultStone(SerializedGameData& sgd, const unsigned obj_id) : GameObject(sgd, obj_id),
    dest_building(sgd.PopMapPoint()),
    dest_map(sgd.PopMapPoint()),
    start_x(sgd.PopSignedInt()),
    start_y(sgd.PopSignedInt()),
    dest_x(sgd.PopSignedInt()),
    dest_y(sgd.PopSignedInt()),
    explode(sgd.PopBool()),
    event(sgd.PopObject<EventManager::Event>(GOT_EVENT))
{
}
예제 #2
0
nofCatapultMan::nofCatapultMan(SerializedGameData& sgd,
                               const unsigned obj_id)
    : nofBuildingWorker(sgd, obj_id),
      wheel_steps( sgd.PopSignedInt() ), target( sgd )
{

}