internal override void hitBy(Enemy enemy) { if (countering) enemy.hitBy(this, enemy.hitDamage); else if (superArmor) return; else base.hitBy(enemy); }
public void addEnemy(int type, float xposition, float yposition) { Enemy e; if (type == 98) e = new SwampBoss(); if (type == 99) e = new DynaBoss(); else e = new Enemy(type); e.position = new Vector2(xposition, yposition); enemies.Add(e); }
public void killEnemy(Enemy e) { enemiesToKill.Add(e); }
public void delayAddEnemy(int type, Vector2 position) { Enemy e = new Enemy(type); e.position = position; enemiesToAdd.Enqueue(e); }
public void addEnemy(int type, Vector2 position) { Enemy e; if (type == 98) e = new SwampBoss(); else if (type == 99) e = new DynaBoss(); else e = new Enemy(type); e.position = position; enemies.Add(e); }
internal virtual void hitBy(Enemy enemy) { if (curState != CharacterState.Blocking && Buffer.invincBuff == false) { health -= enemy.hitDamage; if (health <= 0) Game1.characterManager.killCharacter(this); } }