public void ChangeEnemy(BestiaryEntry definition, int id) { this.definition = definition; this.id = id; if (health > definition.health) this.health = definition.health; this.graphicsRow = definition.graphicsRow; this.offset = new Vector2(definition.xOffset, definition.yOffset); this.width = definition.width; this.height = definition.height; this.ghost = definition.ghost; }
public AdventureEnemy(BestiaryEntry definition, int id) { this.definition = definition; this.id = id; this.texture = Master.texCollection.texEnemies; this.health = definition.health; this.graphicsRow = definition.graphicsRow; this.offset = new Vector2(definition.xOffset, definition.yOffset); this.width = definition.width; this.height = definition.height; this.ghost = definition.ghost; }