Example #1
0
        //TODO: Actions !
        public virtual void Init(TCODColor color, MessageHandler msg, Faction fac, Action firstAction)
        {
            ForeColor = color;
            _messageHandler = msg;
            this.Faction = fac;

            Actions = new Queue<Action>();
            doAction(firstAction);

            Body.Init(this);

            initialized = true;
            msg.SendDebugMessage("New object created and initialized with GUID " + this.GUID + ", name: " + this.Name + ".");
        }