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(); }
public static BasicObject LoadBasicObjectFromXml(XmlElement node) { string symbol = node.Attributes["symbol"].Value; BasicObject bo = new BasicObject(); bo.SetSymbol(symbol); return bo; }