Ejemplo n.º 1
0
        public Enemy(Game game, UnitTypes.EnemyType enemyType)
            : base(game)
        {
            this.enemyType = enemyType;

            isHited = false;
            wanderMovesCount = 0;
        }
Ejemplo n.º 2
0
        public PlayerWeapon(Game game, UnitTypes.PlayerWeaponType weaponType)
            : base(game)
        {
            this.weaponType = weaponType;

            // Weapon configuration
            bulletDamage = UnitTypes.BulletDamage[(int)weaponType];
            bulletsCount = UnitTypes.BulletsCount[(int)weaponType];
            maxBullets = bulletsCount;
        }
Ejemplo n.º 3
0
        public Mosquito(Game game, UnitTypes.MosquitoType mosquitoType)
            : base(game)
        {
            this.mosquitoType = mosquitoType;

            rnd = new Random(DateTime.Now.Second);
            timerDirection = 0;
            stopChangingDirection = false;

            LinearVelocity = Vector3.Zero;
            AngularVelocity = Vector3.Zero;
            direction = Vector3.Zero;
        }
Ejemplo n.º 4
0
 public StaticUnit(Game game, UnitTypes.StaticUnitType _type)
     : base(game)
 {
     statUnitType = _type;
 }
Ejemplo n.º 5
0
 public Player(Game game, UnitTypes.PlayerType playerType)
     : base(game)
 {
     this.playerType = playerType;
 }