コード例 #1
0
 public Shot(Texture2D texture, Vector2 position, Enemy targetEnemy, float speed)
 {
     this.texture = texture;
     this.Position = position;
     this.targetEnemy = targetEnemy;
     this.speed = speed;
     Alive = true;
 }
コード例 #2
0
 public Shot(Texture2D texture, Vector2 position, Enemy targetEnemy, float speed)
 {
     this.texture = texture;
     this.Position = position;
     this.targetEnemy = targetEnemy;
     this.speed = speed;
     this.animation = new Animacao(texture, this.Position, 16, 16, 2, 90, 1.0f, true);
     Alive = true;
 }
コード例 #3
0
 public override void FireToEnemy(Enemy enemy, Vector2 positionSource, Texture2D texture)
 {
     FireToEnemy(enemy, positionSource, texture, 0);
 }
コード例 #4
0
 public void Add(Enemy enemy)
 {
     Enemies.Add(enemy);
 }