summaryrefslogtreecommitdiff
path: root/scripts/actors/Actor.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-28 12:52:20 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-28 12:52:20 -0300
commitafcd5055e98dcb7c9fefeabb072ecc56d0456bd7 (patch)
tree7b5efa129573e184ce5c5f6e0dd8ae872b29e62a /scripts/actors/Actor.cs
parent2fb787a744d4f7a37d81233d2913a5ef39122f73 (diff)
Movimento diagonal
Diffstat (limited to 'scripts/actors/Actor.cs')
-rw-r--r--scripts/actors/Actor.cs4
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>