Ejemplo n.º 1
0
 public MudObject()
 {
     Nouns        = new NounList();
     State        = ObjectState.Alive;
     IsPersistent = false;
     Rules        = null;
 }
Ejemplo n.º 2
0
        public MudObject(String Short, String Long)
        {
            Nouns      = new NounList();
            this.Short = Short;
            this.Long  = Long;
            Nouns.Add(Short.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));

            var firstChar = Short.ToLower()[0];

            if (firstChar == 'a' || firstChar == 'e' || firstChar == 'i' || firstChar == 'o' || firstChar == 'u')
            {
                Article = "an";
            }

            State        = ObjectState.Alive;
            IsPersistent = false;

            Rules = null;
        }