示例#1
0
文件: Actor.cs 项目: Blecki/CCDC
        public virtual void Create(Gem.PropertyBag Properties)
        {
            CurrentAction = null;
            NextAction = null;

            this.Properties = Properties.Clone();
        }
示例#2
0
文件: Actor.cs 项目: 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);
        }
示例#3
0
 public void StepAction()
 {
     if (CurrentAction != null)
         if (CurrentAction.Step(this))
             CurrentAction = null;
 }