MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / MedikitView

Method MedikitView

src/Battlescape/MedikitView.cpp:56–60  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

54 * @param woundTxt A pointer to a Text. Will be updated with the amount of fatal wound.
55 */
56MedikitView::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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected