Exemple #1
0
 protected Object()
 {
     beforeRoutines = new Dictionary <Type, Func <bool> >();
     afterRoutines  = new Dictionary <Type, Func <bool> >();
     Synonyms       = new Synonyms();
     Article        = "a";
 }
 protected void SetDirection(Func <Room, Room> mover, params string[] synonyms)
 {
     Name    = synonyms.First();
     getRoom = mover;
     Synonyms.Are(synonyms);
 }
 protected void SetDirection(Expression <Func <Room, Room> > x, params string[] synonyms)
 {
     getRoom = x.Compile();
     Synonyms.Are(synonyms);
     Grammars.Add(Grammar.Empty, MovePlayer);
 }