Classes | |
| struct | manaLineInfo |
Public Types | |
| enum | startSize { kStar1XSize = 10 , kStar1YSize = 9 , kStar2XSize = 16 , kStar2YSize = 15 , kStar3XSize = 20 , kStar3YSize = 19 , kStar4XSize = 28 , kStar4YSize = 27 , kStar5XSize = 32 , kStar5YSize = 31 , kStar6XSize = 36 , kStar6YSize = 35 , kStar7XSize = 46 , kStar7YSize = 45 } |
| enum | ringSize { kRing1XSize = 8 , kRing1YSize = 7 , kRing2XSize = 12 , kRing2YSize = 11 , kRing3XSize = 16 , kRing3YSize = 15 , kRing4XSize = 22 , kRing4YSize = 21 , kRing5XSize = 26 , kRing5YSize = 25 , kRing6XSize = 32 , kRing6YSize = 31 , kRing7XSize = 40 , kRing7YSize = 39 } |
| enum | area { kAreaX = 475 , kAreaY = 315 , kAreaXSize = 152 , kAreaYSize = 135 } |
| enum | { kCenterX = kAreaX + kAreaXSize / 2 , kCenterY = kAreaY + kAreaYSize / 2 , kWellXSize = 108 , kWellYSize = 123 , kWellX = (kAreaXSize / 2 - kWellXSize / 2) + 1 , kWellY = kAreaYSize / 2 - kWellYSize / 2 } |
| enum | manaEndCoordsBase { kManaXOffset = 9 , kManaYOffset = -10 , kManaUpperLeftX = 16 + kManaXOffset , kManaUpperLeftY = 45 + kManaYOffset , kManaUpperMidX = 70 + kManaXOffset , kManaUpperMidY = 13 + kManaYOffset , kManaUpperRightX = 122 + kManaXOffset , kManaUpperRightY = 45 + kManaYOffset , kManaLowerLeftX = 16 + kManaXOffset , kManaLowerLeftY = 106 + kManaYOffset , kManaLowerMidX = 70 + kManaXOffset , kManaLowerMidY = 135 + kManaYOffset , kManaLowerRightX = 122 + kManaXOffset , kManaLowerRightY = 106 + kManaYOffset } |
| enum | manaEndCoords { kManaRedEndX = kManaUpperLeftX , kManaRedEndY = kManaUpperLeftY , kManaOrangeEndX = kManaUpperMidX , kManaOrangeEndY = kManaUpperMidY , kManaYellowEndX = kManaUpperRightX , kManaYellowEndY = kManaUpperRightY , kManaGreenEndX = kManaLowerLeftX , kManaGreenEndY = kManaLowerLeftY , kManaBlueEndX = kManaLowerMidX , kManaBlueEndY = kManaLowerMidY , kManaVioletEndX = kManaLowerRightX , kManaVioletEndY = kManaLowerRightY , kManaNumXYCoords = 12 , kManaNumManaTypes = kManaNumXYCoords / 2 } |
| enum | startOffset { kManaStartOffset = 12 } |
| enum | manainfo { kManaMaxLevel = 200 , kManaNumManaRegions = kManaNumManaTypes } |
| enum | resourceInfo { kResNumStars = 7 , kResNumRings = 7 , kResStarResNum = 0 , kResRingResNum = 0 , kResNumManaColors = 13 } |
Public Types inherited from Saga2::GfxCompImage | |
| enum | controlValue { kEnter = (1 << 0) , kLeave = (1 << 1) } |
Public Member Functions | |
| CManaIndicator (gPanelList &list) | |
| bool | update (PlayerActor *player) |
| bool | needUpdate (PlayerActor *player) |
| Rect16 | getManaRegionRect (int8 region) |
| int | getNumManaRegions () |
| void | draw () |
| virtual void | drawClipped (gPort &, const Point16 &, const Rect16 &) |
Public Member Functions inherited from Saga2::GfxCompImage | |
| GfxCompImage (gPanelList &, const Rect16 &, void *, uint16, AppFunc *cmd=NULL) | |
| GfxCompImage (gPanelList &, const Rect16 &, void *, const char *, textPallete &, uint16, AppFunc *cmd=NULL) | |
| GfxCompImage (gPanelList &, const Rect16 &, void **, int16, int16, uint16, AppFunc *cmd=NULL) | |
| GfxCompImage (gPanelList &, const Rect16 &, void **, int16, int16, const char *, textPallete &, uint16, AppFunc *cmd=NULL) | |
| GfxCompImage (gPanelList &list, const Rect16 &box, uint32 contextID, char a, char b, char c, uint16 resNum, uint16 numButtons, uint16 ident, AppFunc *cmd) | |
| GfxCompImage (gPanelList &, const StaticRect &, void **, int16, int16, const char *, textPallete &, uint16, AppFunc *cmd=NULL) | |
| void | pointerMove (gPanelMessage &msg) |
| void | enable (bool) |
| void | invalidate (Rect16 *unused=nullptr) |
| int16 | getCurrent () |
| int16 | getMin () |
| int16 | getMax () |
| void | setCurrent (uint16 val) |
| void | setExtent (const Rect16 &rect) |
| void | select (uint16 val) |
| void | select (uint16 val, const Rect16 &rect) |
| void | setImages (void **images) |
| void | setImage (void *image) |
| void | draw () |
| virtual void | drawClipped (gPort &, const Point16 &, const Rect16 &) |
Public Member Functions inherited from Saga2::gControl | |
| gControl (gPanelList &, const Rect16 &, const char *, uint16, AppFunc *cmd=NULL) | |
| gControl (gPanelList &, const Rect16 &, gPixelMap &, uint16, AppFunc *cmd=NULL) | |
| gControl (gPanelList &, const StaticRect &, const char *, uint16, AppFunc *cmd=NULL) | |
| gPanel * | keyTest (int16 key) |
| void | enable (bool abled) |
| void | select (uint16 sel) |
| void | ghost (bool ghosted) |
| void | draw () |
Public Member Functions inherited from Saga2::gPanel | |
| gPanel (gPanelList &, const Rect16 &, const char *, uint16, AppFunc *cmd=NULL) | |
| gPanel (gPanelList &, const Rect16 &, gPixelMap &, uint16, AppFunc *cmd=NULL) | |
| gPanel (gPanelList &, const StaticRect &, const char *, uint16, AppFunc *cmd=NULL) | |
| virtual gPanel * | hitTest (const Point16 &p) |
| virtual gPanel * | keyTest (int16 key) |
| bool | isActive () |
| virtual bool | activate (gEventType why) |
| virtual void | deactivate () |
| virtual void | draw () |
| virtual void | enable (bool abled) |
| virtual void | select (uint16 selected) |
| virtual void | ghost (bool ghosted) |
| virtual void | invalidate (Rect16 *area=nullptr) |
| virtual void | setMousePoll (bool abled) |
| virtual void | drawClipped (gPort &port, const Point16 &offset, const Rect16 &r) |
| gWindow * | getWindow () |
| void | makeActive () |
| Rect16 | getExtent () |
| bool | isSelected () |
| bool | isGhosted () |
| bool | getEnabled () const |
| void | show (bool shown=true, bool inval=true) |
| void | moveToFront (gPanelList &l) |
| void | moveToBack (gPanelList &l) |
Protected Member Functions | |
| int16 | bresLine (Point16 from, Point16 to) |
| Point16 | bresLine (Point16 from, Point16 to, int16 steps) |
| void | getManaLineInfo (uint16 index, int16 manaAmount, int16 baseManaAmount, manaLineInfo *info) |
Protected Member Functions inherited from Saga2::GfxCompImage | |
| virtual void * | getCurrentCompImage () |
| void | init () |
Protected Member Functions inherited from Saga2::gPanel | |
| gPanel (gWindow &, const Rect16 &, AppFunc *cmd) | |
| virtual void | pointerMove (gPanelMessage &msg) |
| virtual bool | pointerHit (gPanelMessage &msg) |
| virtual bool | pointerRHit (gPanelMessage &msg) |
| virtual void | pointerDrag (gPanelMessage &msg) |
| virtual void | pointerRelease (gPanelMessage &msg) |
| virtual bool | keyStroke (gPanelMessage &msg) |
| virtual void | timerTick (gPanelMessage &msg) |
| virtual void | onMouseHintDelay () |
| void | notify (gEventType, int32 value) |
| void | notify (gEvent &ev) |
| void | drawTitle (TextPositions placement) |
Additional Inherited Members | |
Public Attributes inherited from Saga2::gControl | |
| uint8 | _accelKey |
| gPanelList * | _list |
Public Attributes inherited from Saga2::gPanel | |
| uint32 | _id |
| void * | _userData |
Protected Attributes inherited from Saga2::GfxCompImage | |
| void ** | _compImages |
| uint16 | _currentImage |
| uint16 | _max |
| uint16 | _min |
| textPallete | _textPal |
| gFont * | _textFont |
Protected Attributes inherited from Saga2::gPanel | |
| gWindow & | _window |
| Rect16 | _extent |
| const char * | _title |
| byte | _enabled |
| byte | _selected |
| byte | _imageLabel |
| byte | _ghosted |
| byte | _wantMousePoll |
|
virtual |
Reimplemented from Saga2::GfxCompImage.
|
virtual |
Reimplemented from Saga2::GfxCompImage.