Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
        }