static void Initialize() { initialized = true; // this is the method call where the ships shape is set. InitShape(); // This is the movement info of the ship. DefaultMovementInfo = new ShipMovementInfo( new Bounded <float>(TimeWarp.AngularAcceleration), // Angular Acceleration in Radians per second per second new Bounded <float>(TimeWarp.ScaleTurning(1)), // Max Angular Velocity in Radians per second new Bounded <float>(TimeWarp.ScaleAcceleration(45, 0)), //Linear Acceleration in a Distance unit per second per second new Bounded <float>(TimeWarp.ScaleVelocity(45))); // Max Linear Velocity in a Distance unit per second DefaultState = new ShipState( new Bounded <float>(6), // Ships Health new Bounded <float>(20), //Ships Energy new Bounded <float>(0), //Health Recharge Rate new Bounded <float>(TimeWarp.RechargeRateToPerSeconds(6, 1))); //Energy Recharge Rate // Sets the actions of the ship (the weapons) // If you changed the order the Primary would become the Secondary DefaultActions.Add(ArilouSkiffPrimary.Create()); DefaultActions.Add(ArilouSkiffSecondary.Create()); //The sounds related to the Controlable since Ship inherits from Controlable. //They are just the .oggs in the Sound directory without the file extension. //The first is the sounds played when it is created the seconde is when it dies. DefaultControlableSounds = new ControlableSounds(null, "ShipDies"); //Ships sounds this is actaully a music so its teh file in the music directory without the file extension. //The music played when the ship wins. DefaultShipSounds = new ShipSounds("ArilouSkiffDitty"); }
public ArilouSkiffPrimary(ArilouSkiffPrimary copy) : base(copy) { }