public PlayerTank(List<Projectile> pBulletList, List<Projectile> pRocketList) { bulletList = pBulletList; rocketList = pRocketList; _footSoldiers = EnemyController.footSoldiers; _footSoldier = EnemyController.footSoldier; }
public Projectile(float locationX, float locationY, float pAngle ) { //Set the positions BulletPosition = new Vector2(locationX, locationY); RocketPosition = new Vector2(locationX, locationY); //Set directions _bulletDirection = new Vector2((float)Math.Cos(pAngle)*BulletSpeed, (float)Math.Sin(pAngle)*BulletSpeed); _rocketDirection = new Vector2((float)Math.Cos(pAngle)*RocketSpeed, (float)Math.Sin(pAngle)*RocketSpeed); //set rotation RocketRotation = pAngle; footSoldiers = EnemyController.footSoldiers; footSoldier = EnemyController.footSoldier; }
public void Init() { _footSoldier = new FootSoldier(); }