Ejemplo n.º 1
0
 public InventoryKey(KeyColor color)
 {
     type = color.ToInventeryItemType();
 }
Ejemplo n.º 2
0
 public bool IsDoorOpenFor(ITileFieldPlayer player)
 {
     //A player is only allowed to open a door if he has the right key.
     return(player.HasItem(doorColor.ToInventeryItemType()));
 }