示例#1
0
        public Enemy(Game game, UnitTypes.EnemyType enemyType)
            : base(game)
        {
            this.enemyType = enemyType;

            isHited = false;
            wanderMovesCount = 0;
        }
示例#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;
        }
示例#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;
        }
示例#4
0
 public StaticUnit(Game game, UnitTypes.StaticUnitType _type)
     : base(game)
 {
     statUnitType = _type;
 }
示例#5
0
 public Player(Game game, UnitTypes.PlayerType playerType)
     : base(game)
 {
     this.playerType = playerType;
 }