Build::Build() : Order() { name = "Build Fleet"; description = "Build a fleet"; fleetlist = (ListParameter*) addOrderParameter( new ListParameter("ships","The type of ship to build", boost::bind( &Build::generateListOptions, this )) ); fleetname = (StringParameter*)addOrderParameter( new StringParameter( "name", "The name of the new fleet being built") ); }
LoadArmament::LoadArmament() : Order() { name = "Load Armament"; description = "Load a weapon onto your ships"; weaponlist = (ListParameter*) addOrderParameter( new ListParameter("Weapons", "The weapons to load", boost::bind( &LoadArmament::generateListOptions, this ) ) ); }
Move::Move() : Order() { name = "Move"; description = "Move to a given position absolute in space"; coords = new SpaceCoordParam(); coords->setName("pos"); coords->setDescription("The position in space to move to"); addOrderParameter(coords); }
RenameFleet::RenameFleet() { name = "Rename Fleet"; description = "Rename this fleet"; newName = new StringParameter(); newName->setName("New Name"); newName->setDescription("The new name of the fleet"); addOrderParameter(newName); turns = 1; }
Nop::Nop() : Order() { name = "No Operation"; description = "Object does nothing for a given number of turns"; timeparam = new TimeParameter(); timeparam->setMax(1000); timeparam->setName("wait"); timeparam->setDescription("The number of turns to wait"); addOrderParameter(timeparam); }