SharpLibEar/Action.cs
changeset 223 f6272f65d8fc
parent 220 e5910d7b6a81
child 228 6a84d8282226
     1.1 --- a/SharpLibEar/Action.cs	Wed Jul 27 11:07:35 2016 +0200
     1.2 +++ b/SharpLibEar/Action.cs	Wed Jul 27 15:05:58 2016 +0200
     1.3 @@ -12,7 +12,13 @@
     1.4      [KnownType("DerivedTypes")]
     1.5      public abstract class Action: IComparable
     1.6      {
     1.7 -        public abstract void Execute();
     1.8 +        public abstract void DoExecute();
     1.9 +
    1.10 +        public void Execute()
    1.11 +        {
    1.12 +            Console.WriteLine("Executing action: " + Brief());
    1.13 +            DoExecute();
    1.14 +        }
    1.15  
    1.16          public string Name {
    1.17              //Get the name of this object action attribute