Esempio n. 1
0
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") );
}
Esempio n. 2
0
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 ) ) );

}
Esempio n. 3
0
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);
}
Esempio n. 4
0
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;
}
Esempio n. 5
0
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);

}