public void Run() { for (int x = 0; x < 15; x++) { for (int y = 0; y < 15; y++) { if (x == 14 && y == 9) { grid[x, y] = new Spaces(); } else { //units[x, y] = new Character(); grid[x, y] = new Spaces(); grid[x, y].genChar(); } } } //for (int x = 0; x < 15; x++) //{ // for (int y = 0; y < 15; y++) // { // StartTurn(units[x, y]); // } //} int[] moveTo = new int[2]; moveTo[0] = 14; moveTo[1] = 9; int[] currentLocation = new int[2]; currentLocation[0] = 0; currentLocation[1] = 0; MoveCharacter(grid[1, 2].c, currentLocation, moveTo); }
public void Run() { int possible = 25; Console.WriteLine("Below is a list of all of the character's Initiative \n"); for (int x = 0; x < 15; x++) { for (int y = 0; y < 15; y++) { grid[x, y] = new Spaces(); if (rand.Next(0, 2) == 1 && possible > 0) { grid[x, y].genChar(setCharacterInitiative()); --possible; } } } //checkCharactersInitiatives(); genTurns(); for (int x = 0; x < 15; x++) { for (int y = 0; y < 15; y++) { if (grid[x, y].c != null) { Console.WriteLine(grid[x, y].c.Inititative); } } } Console.WriteLine("\nList Below \n\n"); for (int i = 0; i < 25; i++) { Console.WriteLine(characterList.ElementAt(i).c.Inititative); } testDropItem(); testPickupItem(); testGiveItem(); }