public AIBase(CreatureBase C) { LinkedCreature = C; RndGen = new Random(); FOVHandler = (libtcodWrapper.TCODFov)Utilities.InterStateResources.Instance.Resources["Game_FOVHandler"]; PathFinder = (libtcodWrapper.TCODPathFinding)Utilities.InterStateResources.Instance.Resources["Game_PathFinder"]; }
public Map() { FOVHandler = (libtcodWrapper.TCODFov)Utilities.InterStateResources.Instance.Resources["Game_FOVHandler"]; PathFinder = (libtcodWrapper.TCODPathFinding)Utilities.InterStateResources.Instance.Resources["Game_PathFinder"]; Creatures = new List <Guardian_Roguelike.World.Creatures.CreatureBase>(); ItemPiles = new List <Guardian_Roguelike.World.Items.ItemBase> [WIDTH, HEIGHT]; if (RandGen == null) { RandGen = new Random(System.DateTime.Now.Millisecond); } DisplayData = new TerrainTile[WIDTH, HEIGHT]; Generate(); }