Ejemplo n.º 1
0
 private void Exit(P_BattleMap battlemap)
 {
     DebugBox.DismissP_Render(battlemap.Renderer);
     DebugBox.DismissUpdater(battlemap.Updater);
     DebugBox = null;
     _Cursor.DismissP_Render(battlemap.Renderer);
     _Cursor = null;
 }
Ejemplo n.º 2
0
        public P_BMSPlayerSelectingTile(P_BattleMap map)
        {
            map.MyState = this;
            Random rng = new Random();

            DebugBox = new TilerIsADummy.PrototypeMapGen.PrototypeTextBox.P_DebugBattleBox(map);
            DebugBox.AcceptP_Render(map.Renderer);
            DebugBox.AcceptUpdater(map.Updater);
            while (true)
            {
                int num = rng.Next(0, map.MapEntity.Count);
                if (map.MapEntity[num].GetType() == typeof(EntityActor))
                {
                    EntityActor check = map.MapEntity[num] as EntityActor;
                    if (check.TurnStatus == EntityCharacterTurnStatus.MyTurn && check.MyTileIndex > 0)
                    {
                        _Cursor = new P_SelectionCursor(check.MyLocation);
                        _Cursor.AcceptP_Render(map.Renderer);
                        CursorIndex = check.MyTileIndex;
                        break;
                    }
                }
            }
        }