示例#1
0
文件: Location.cs 项目: janoskaz/game
 public void VoluntaryAction(Player p)
 {
     Block.VoluntaryAction(p);
     if (Block is Chest)
         if (((Chest)Block).CanBeRemoved())
             if (((Chest)Block).IsEmpty())
                 Block = new BasicObject();
     this.UpdateSymbol();
 }
示例#2
0
文件: ThisGame.cs 项目: janoskaz/game
 public static BasicObject LoadBasicObjectFromXml(XmlElement node)
 {
     string symbol = node.Attributes["symbol"].Value;
     BasicObject bo = new BasicObject();
     bo.SetSymbol(symbol);
     return bo;
 }