public ShipStateMoving(
     Settings settings, Ship ship,
     [Inject("Main")]
     Camera mainCamera)
     : base(ship)
 {
     _settings = settings;
     _mainCamera = mainCamera;
 }
Exemple #2
0
 public ShipState(Ship ship)
 {
     _ship = ship;
 }
Exemple #3
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            ship = Content.Load<Texture2D>("ship");
            font = Content.Load<SpriteFont>("font");
            objList = new List<GameObject>();
            controlShip = new Ship(new Vector2(500, 500));
            AIcontrol = new FuSMAIControl();
            // TODO: use this.Content to load your game content here

            //objList.Add(new Ball(new Vector2(800, 400)));
            //objList[0].currentVelocity = new Vector2(-2.1f, 0.0f);
            //objList.Add(new Ball(new Vector2(300, 300)));
        }
Exemple #4
0
 public ShipStateDead(Settings settings, Ship ship, IInstantiator gameObjectCreator)
     : base(ship)
 {
     _settings = settings;
     _gameObjectCreator = gameObjectCreator;
 }
 public GameController(Ship ship, AsteroidManager asteroidSpawner)
 {
     _asteroidSpawner = asteroidSpawner;
     _ship = ship;
 }
 public ShipStateWaitingToStart(Settings settings, Ship ship)
     : base(ship)
 {
     _settings = settings;
 }