예제 #1
0
        public TankTurret(Game game, ThePlayer player) : base(game)
        {
            PlayerRef = player;

            Barral    = new AModel(game);
            ShotTimer = new Timer(game, 4.1f);
        }
예제 #2
0
        public EnemyControl(Game game, ThePlayer player) : base(game)
        {
            PlayerRef = player;
            Tanks     = new List <Tank>();

            game.Components.Add(this);
        }
예제 #3
0
        public Background(Game game, ThePlayer player) : base(game)
        {
            PlayerRef = player;

            GrassX    = new float[Grass.Length];
            BlocksX   = new float[Blockades.Length];
            MountianX = new float[Mountians.Length];

            for (int i = 0; i < Mountians.Length; i++)
            {
                Mountians[i] = new Mod(game);
            }

            for (int i = 0; i < Grass.Length; i++)
            {
                Grass[i] = new Engine.Plane(game);
            }

            for (int i = 0; i < Blockades.Length; i++)
            {
                Blockades[i] = new Mod(game);
            }

            Stars = new StarControl(game);
            Base  = new Mod(game);

            game.Components.Add(this);
        }
예제 #4
0
        public HouseControl(Game game, ThePlayer player) : base(game)
        {
            PlayerRef = player;

            for (int i = 0; i < Houses.Length; i++)
            {
                Houses[i]     = new Mod(game);
                OpenHouses[i] = new Mod(game);
            }

            game.Components.Add(this);
        }
예제 #5
0
        public Tank(Game game, ThePlayer player) : base(game)
        {
            PlayerRef = player;
            Turret    = new TankTurret(game, player);
            Active    = false;

            for (int i = 0; i < 2; i++)
            {
                Treds[i] = new TankTred(game);
                Treds[i].AddAsChild(this, true, false);
            }
        }
예제 #6
0
 public Person(Game game, ThePlayer player, XnaModel model) : base(game, model)
 {
     PlayerRef = player;
     Attention = new Timer(game, Services.RandomMinMax(0.25f, 2));
 }