public static void Init() { //clean map pointer CurrentMapGroup = null; //clean player Players = new Player[MAX_TEAM_SLOTS]; for (int i = 0; i < MAX_TEAM_SLOTS; i++) { Players[i] = new Player(); } Inventory = new int[MAX_INV_SLOTS]; for (int i = 0; i < MAX_INV_SLOTS; i++) { Inventory[i] = -1; } PrevInput = new Input(); CurrentInput = new Input(); InputTime = RenderTime.Zero; replayInputs = new List<Command>(); Rand = new Random(); isLogging = true; currentCharIndex = -MAX_TEAM_SLOTS; CurrentMapID = ""; }
private static void ResetGameState() { //reset player for (int i = 0; i < MAX_TEAM_SLOTS; i++) { Players[i] = new Player(); } Players[0] = new Player(new Loc2D(), Direction8.Down); Players[0].CharData.Species = 1; //Players[0].Moves[0].MoveNum = 2; //Players[0].Moves[1].MoveNum = 3; //Players[0].Moves[2].MoveNum = 4; //Inventory[0] = 0; //Inventory[1] = 1; //Inventory[2] = 2; //Inventory[3] = 3; //Inventory[4] = 4; money = 0; BeginFloor(); }