Exemplo n.º 1
0
        public Ship(GameState game, Vector2 position,
            IShipController controller, int faction = 0, float acceleration = 5,
            Direction2 direction = default(Direction2), float inverseFriction = 0.8f)
            : base(game)
        {
            this.position = position;
            this.controller = controller;
            this.faction = faction;
            this.acceleration = acceleration;
            this.forwards = direction;
            this.inverseFriction = inverseFriction;
            controller.SetShip(this);

            game.Ships.Add(this);
        }