* Initializes the Medikit view. * @param w The MinikitView width. * @param h The MinikitView height. * @param x The MinikitView x origin. * @param y The MinikitView y origin. * @param game Pointer to the core game. * @param unit The wounded unit. * @param partTxt A pointer to a Text. Will be updated with the selected body part. * @param woundTxt A pointer to a Text. Will be updated with th
| 54 | * @param woundTxt A pointer to a Text. Will be updated with the amount of fatal wound. |
| 55 | */ |
| 56 | MedikitView::MedikitView (int w, int h, int x, int y, Game * game, BattleUnit *unit, Text *partTxt, Text *woundTxt) : InteractiveSurface(w, h, x, y), _game(game), _selectedPart(0), _unit(unit), _partTxt(partTxt), _woundTxt(woundTxt) |
| 57 | { |
| 58 | updateSelectedPart(); |
| 59 | _redraw = true; |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Draws the medikit view. |
nothing calls this directly
no outgoing calls
no test coverage detected