public Enemy(Game game, UnitTypes.EnemyType enemyType) : base(game) { this.enemyType = enemyType; isHited = false; wanderMovesCount = 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; }
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; }
public StaticUnit(Game game, UnitTypes.StaticUnitType _type) : base(game) { statUnitType = _type; }
public Player(Game game, UnitTypes.PlayerType playerType) : base(game) { this.playerType = playerType; }