Пример #1
0
        public override void PerformActions()
        {
            if (InsideBuilding != null)
            {
                // we are inside a building
                InsideBuilding.AffectObject(this);
            }
            else
            {
                // Did I think about something?
                IAction a = ActionManager.Pop();

                if (a != null && Food.Value > 0)
                {
                    a.AffectObject(this);
                }
            }
        }