diff options
Diffstat (limited to 'scripts/Entities/Actors/Enemy.cs')
| -rw-r--r-- | scripts/Entities/Actors/Enemy.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/Entities/Actors/Enemy.cs b/scripts/Entities/Actors/Enemy.cs index c152a0b..d398176 100644 --- a/scripts/Entities/Actors/Enemy.cs +++ b/scripts/Entities/Actors/Enemy.cs @@ -10,9 +10,11 @@ namespace TheLegendOfGustav.Entities.Actors; /// </summary> public partial class Enemy : Actor { + private EnemyDefinition definition; + public Enemy(Vector2I initialPosition, MapData map, EnemyDefinition definition) : base(initialPosition, map, definition) { - Definition = definition; + this.definition = definition; SetDefinition(definition); } @@ -21,8 +23,6 @@ public partial class Enemy : Actor /// </summary> public BaseAI Soul { get; private set; } - private EnemyDefinition Definition { get; set; } - /// <summary> /// Além de definir as características gerais de um ator, /// também define qual IA utilizar. @@ -31,7 +31,7 @@ public partial class Enemy : Actor public void SetDefinition(EnemyDefinition definition) { // Definimos as características do ator. - base.SetDefinition(Definition); + base.SetDefinition(this.definition); // Definimos qual IA utilizar. switch (definition.AI) |
