private static TCODColor GetRarityColour(RCell cell, TCODColor defaultColour) { if (cell.Is(RCell.Uncommon)) { return(TCODColor.lightGreen); } if (cell.Is(RCell.Rare)) { return(TCODColor.lighterBlue); } if (cell.Is(RCell.Epic)) { return(TCODColor.lightMagenta); } if (cell.Is(RCell.Legendary)) { return(TCODColor.lightYellow); } if (cell.Is(RCell.Artifact)) { return(TCODColor.lightRed); } return(defaultColour); }
public static bool IsTransparent(this RCell cell) { return(!cell.Is(RCell.LightBlocking) || cell.Is(RCell.Transparent)); }
public static bool IsWalkable(this RCell cell) { return(cell.Is(RCell.Walkable)); }