public TileType(string name, bool passable, bool seethru, TileColor color, TileRole role)
        {
            Name = name;
            if (passable)
            {
                Flags = Flags | TileFlags.Passable;
            }
            if (seethru)
            {
                Flags = Flags | TileFlags.SeeThru;
            }

            Color = color;
            Role  = role;
        }
Example #2
0
 public TileType(int id, string name, TileRole role, 
     char character, Color foreColor, Color backColor,
     ObjectSize size, ObjectHeight height,
     bool isPassable, bool isDestructible = false, int durability = 0)
 {
     Id				= id;
     Name			= name;
     Character		= character;
     ForeColor		= foreColor;
     BackColor		= backColor;
     Role			= role;
     Size			= size;
     Height			= height;
     IsPassable		= isPassable;
     IsDestructible	= isDestructible;
     Durability		= durability;
 }