summaryrefslogtreecommitdiff
path: root/scripts/Entities/Actions/Action.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-18 12:06:59 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-18 12:06:59 -0300
commit5146895cf537dd69867da612abed5b4abaf805cd (patch)
tree70212352a07922b58db99ba2564f76ca072af200 /scripts/Entities/Actions/Action.cs
parenteacdd15612c70ff86f3446982c46a09272249936 (diff)
ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'scripts/Entities/Actions/Action.cs')
-rw-r--r--scripts/Entities/Actions/Action.cs32
1 files changed, 7 insertions, 25 deletions
diff --git a/scripts/Entities/Actions/Action.cs b/scripts/Entities/Actions/Action.cs
index b2d6a4b..0bbcc24 100644
--- a/scripts/Entities/Actions/Action.cs
+++ b/scripts/Entities/Actions/Action.cs
@@ -10,47 +10,29 @@ namespace TheLegendOfGustav.Entities.Actions;
/// </summary>
public abstract partial class Action : RefCounted
{
- private Actor actor;
-
- private int cost;
+ /// <summary>
+ /// O custo da ação.
+ /// </summary>
+ protected int cost;
public Action(Actor actor)
{
Actor = actor;
// Custo base, subclasses podem sobreescrever isto se quiserem.
- Cost = 10;
+ cost = 10;
}
/// <summary>
/// O ator que realiza a ação.
/// </summary>
- public Actor Actor
- {
- get => actor;
- private set
- {
- actor = value;
- }
- }
-
- /// <summary>
- /// O custo da ação.
- /// </summary>
- protected int Cost
- {
- get => cost;
- set
- {
- cost = value;
- }
- }
+ public Actor Actor { get; private set; }
/// <summary>
/// É conveniente ter acesso ao mapa dentro de uma ação.
/// </summary>
protected MapData MapData
{
- get => actor.MapData;
+ get => Actor.MapData;
}
/// <summary>