Exemplo n.º 1
0
        public void AddRebelToSector()
        {
            RebelShip tempShip = new RebelShip(game, spriteSheet);

            tempShip.Initialize(sector);
            overworld.AddOverworldObject(tempShip);
        }
Exemplo n.º 2
0
        public void AddRebelShip(Vector2 pos)
        {
            RebelShip tmpShip = new RebelShip(game, spriteSheet);

            tmpShip.Initialize();
            tmpShip.position = pos;
            overworld.AddOverworldObject(tmpShip);
        }
Exemplo n.º 3
0
        public void AddRebelShip(Vector2 pos, string levelToStart)
        {
            RebelShip tmpShip = new RebelShip(game, spriteSheet);

            tmpShip.Initialize();
            tmpShip.position = pos;;
            tmpShip.Level    = levelToStart;
            overworld.AddOverworldObject(tmpShip);
        }
Exemplo n.º 4
0
        public List <OverworldShip> GetOverworldShips(int number, String type)
        {
            List <OverworldShip> shipList = new List <OverworldShip>();

            switch (type.ToLower())
            {
            case "rebel":
                for (int i = 0; i < number; i++)
                {
                    RebelShip tmpShip = new RebelShip(game, spriteSheet);
                    tmpShip.Initialize();
                    shipList.Add(tmpShip);
                }
                break;
            }

            return(shipList);
        }