Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static bool IsTransparent(this RCell cell)
 {
     return(!cell.Is(RCell.LightBlocking) || cell.Is(RCell.Transparent));
 }
Beispiel #3
0
 public static bool IsWalkable(this RCell cell)
 {
     return(cell.Is(RCell.Walkable));
 }