| 75 | } // anonymous namespace |
| 76 | |
| 77 | BattleView::BattleView(sp<GameState> gameState) |
| 78 | : BattleTileView(*gameState->current_battle->map, |
| 79 | Vec3<int>{TILE_X_BATTLE, TILE_Y_BATTLE, TILE_Z_BATTLE}, |
| 80 | Vec2<int>{STRAT_TILE_X, STRAT_TILE_Y}, TileViewMode::Isometric, |
| 81 | gameState->current_battle->battleViewScreenCenter, *gameState), |
| 82 | baseForm(ui().getForm("battle/battle")), state(gameState), battle(*state->current_battle), |
| 83 | followAgent(false), selectionState(BattleSelectionState::Normal) |
| 84 | { |
| 85 | motionScannerDirectionIcons.push_back( |
| 86 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 87 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 88 | 88))); |
| 89 | motionScannerDirectionIcons.push_back( |
| 90 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 91 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 92 | 89))); |
| 93 | motionScannerDirectionIcons.push_back( |
| 94 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 95 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 96 | 90))); |
| 97 | motionScannerDirectionIcons.push_back( |
| 98 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 99 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 100 | 91))); |
| 101 | motionScannerDirectionIcons.push_back( |
| 102 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 103 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 104 | 92))); |
| 105 | motionScannerDirectionIcons.push_back( |
| 106 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 107 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 108 | 93))); |
| 109 | motionScannerDirectionIcons.push_back( |
| 110 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 111 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 112 | 94))); |
| 113 | motionScannerDirectionIcons.push_back( |
| 114 | fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 115 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 116 | 95))); |
| 117 | |
| 118 | selectedItemOverlay = fw().data->loadImage("battle/battle-item-select-icon.png"); |
| 119 | selectedPsiOverlay = fw().data->loadImage("battle/battle-psi-select-icon.png"); |
| 120 | pauseIcon = fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 121 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 122 | 260)); |
| 123 | |
| 124 | squadOverlay.emplace_back(); |
| 125 | squadOverlay.push_back(fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 126 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 127 | 1))); |
| 128 | squadOverlay.push_back(fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 129 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
| 130 | 0))); |
| 131 | |
| 132 | unitHostiles.emplace_back(); |
| 133 | unitHostiles.push_back(fw().data->loadImage(format("PCK:xcom3/tacdata/icons.pck:xcom3/tacdata/" |
| 134 | "icons.tab:%d:xcom3/tacdata/tactical.pal", |
nothing calls this directly
no test coverage detected