Example #1
0
File: Actor.cs Project: Blecki/CCDC
        public virtual void Create(Gem.PropertyBag Properties)
        {
            CurrentAction = null;
            NextAction = null;

            this.Properties = Properties.Clone();
        }
Example #2
0
File: Actor.cs Project: Blecki/CCDC
        public virtual void Update(World World, float ElapsedTime)
        {
            if (NextAction != null)
            {
                if (CurrentAction != null) CurrentAction.End(World, this);
                CurrentAction = NextAction;
                NextAction = null;
                CurrentAction.Begin(World, this);
            }

            if (CurrentAction != null) CurrentAction.Update(World, this, ElapsedTime);
        }
Example #3
0
 public void StepAction()
 {
     if (CurrentAction != null)
         if (CurrentAction.Step(this))
             CurrentAction = null;
 }