Example #1
0
 protected Plane(string name, MotorType motor, WingType wing, WheelType wheel)
 {
     this._name  = name;
     this._motor = motor;
     this._wheel = wheel;
     this._wing  = wing;
 }
Example #2
0
 public AbstractAirPlane(string aircraftname, string id, int range, int fuelconsumption, WingType wingtype) : base(aircraftname, id, range, fuelconsumption)
 {
     WingType = wingtype;
 }
Example #3
0
 /// <summary>
 ///   Sets the Wing type of the creature specified.
 ///   - nWingType (CREATURE_WING_TYPE_*)
 ///   CREATURE_WING_TYPE_NONE
 ///   CREATURE_WING_TYPE_DEMON
 ///   CREATURE_WING_TYPE_ANGEL
 ///   CREATURE_WING_TYPE_BAT
 ///   CREATURE_WING_TYPE_DRAGON
 ///   CREATURE_WING_TYPE_BUTTERFLY
 ///   CREATURE_WING_TYPE_BIRD
 ///   - oCreature: the creature to change the wing type for.
 ///   Note: Only two creature model types will support wings.
 ///   The MODELTYPE for the part based (playable races) 'P'
 ///   and MODELTYPE 'W'in the appearance.2da
 /// </summary>
 public static void SetCreatureWingType(WingType nWingType, uint oCreature = OBJECT_INVALID)
 {
     Internal.NativeFunctions.StackPushObject(oCreature);
     Internal.NativeFunctions.StackPushInteger((int)nWingType);
     Internal.NativeFunctions.CallBuiltIn(791);
 }
Example #4
0
 public PassengerAirPlane(string aircraftname, string id, int range, int fuelconsumption, int passengercapacity, WingType wingtype) : base(aircraftname, id, range, fuelconsumption, wingtype)
 {
     PassengerCapacity = passengercapacity;
 }
Example #5
0
 public CargoAirPlane(string aircraftname, string id, int range, int fuelconsumption, int carryingcapacity, WingType wingtype) : base(aircraftname, id, range, fuelconsumption, wingtype)
 {
     CarryingCapacity = carryingcapacity;
 }
 //this exists because the subfolders dividing the room, tile, etc.
 //prefabs by wing type have the suffix "Wing" to clarify that they
 //are dividing by wing type not by magic type where needed (example:
 //alchemy is both a type of magic and the name of a wing type)
 public static string getPrefabResourcesPath(WingType wType)
 {
     return(wType.ToString() + "Wing/");
     //note the / which is used for Resources.Load instead of \
     //which is normally used for file system paths
 }