Created
July 9, 2014 08:20
-
-
Save hagbarddenstore/7134a142d55acc773065 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TileType | |
{ | |
public static readonly TileType Water = new TileType('~', false, 0.0, "Water", null, "water.png"); | |
public static readonly TileType Sand = new TileType('§', true, 0.75, "Sand", null, "sand.png"); | |
public static readonly TileType Dirt = new TileType('#', true, 1.0, "Dirt", null, "dirt.png"); | |
public static readonly TileType Grass = new TileType('"', true, 1.0, "Grass", null, "grass.png"); | |
public static readonly TileType Pebbles = new TileType('*', true, 1.0, "Pebbles", null, "pebbles.png"); | |
public static readonly TileType Rock = new TileType('^', false, 0.0, "Rock", null, "rocks.png"); | |
public static readonly TileType Tree = new TileType('†', true, 0.5, "Tree", null, "tree.png"); | |
private char _tile; | |
private bool _passable; | |
private double _speedMod; | |
private string _type; | |
private Unit[] _unitsInMe; | |
private string _sprite; | |
private TileType(char tile, bool passable, double speedMod, string type, Unit[] unitsInMe, string sprite) | |
{ | |
_tile = tile; | |
_passable = passable; | |
_speedMod = speedMod; | |
_type = type; | |
_unitsInMe = unitsInMe; | |
_sprite = sprite; | |
} | |
public char Tile { get { return _tile; } } | |
public bool Passable { get { return _passable; } } | |
public double SpeedMod { get { return _speedMod; } } | |
public string Type { get { return _type; } } | |
public Unit[] UnitsInMe { get { return _unitsInMe; } } | |
public string Sprite { get { return _sprite; } } | |
} | |
class Unit | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment