diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-28 12:52:20 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-28 12:52:20 -0300 |
| commit | afcd5055e98dcb7c9fefeabb072ecc56d0456bd7 (patch) | |
| tree | 7b5efa129573e184ce5c5f6e0dd8ae872b29e62a /scripts/actors/Actor.cs | |
| parent | 2fb787a744d4f7a37d81233d2913a5ef39122f73 (diff) | |
Movimento diagonal
Diffstat (limited to 'scripts/actors/Actor.cs')
| -rw-r--r-- | scripts/actors/Actor.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/actors/Actor.cs b/scripts/actors/Actor.cs index 9257bdc..b0e050f 100644 --- a/scripts/actors/Actor.cs +++ b/scripts/actors/Actor.cs @@ -17,6 +17,10 @@ public abstract partial class Actor : Sprite2D /// </summary> public MapData Map_Data { get; set; } + /// <summary> + /// Se o ator está vivo. + /// </summary> + public bool IsAlive { get => Hp > 0; } private Vector2I gridPosition = Vector2I.Zero; /// <summary> |
