forked from fxwkes/Roguelike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTileFlyweight.cs
More file actions
33 lines (31 loc) · 881 Bytes
/
Copy pathTileFlyweight.cs
File metadata and controls
33 lines (31 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
namespace Roguelike
{
class TileFlyweight
{
public string Name { get; }
public string Description { get; }
public char Symbol { get; }
public int Price {get; set;}
public Type TileType { get; }
public ConsoleColor Color { get; }
public BaseEntity Object { get; set; }
public enum Type
{
Wall = 0,
Ground = 1,
Water = 2,
Lava = 3
}
public TileFlyweight(string name, string description, char symbol, int price, Type type, ConsoleColor color = ConsoleColor.White, BaseEntity obj = null)
{
Name = name;
Description = description;
Symbol = symbol;
Price = price;
TileType = type;
Color = color;
Object = obj;
}
}
}