|
enum | Type {
kTypeNone = 0,
kTypeMove = 1,
kTypeClick = 2,
kTypeInput1NoLeave = 3,
kTypeInput1Leave = 4,
kTypeInput2NoLeave = 5,
kTypeInput2Leave = 6,
kTypeInput3NoLeave = 7,
kTypeInput3Leave = 8,
kTypeInputFloatNoLeave = 9,
kTypeInputFloatLeave = 10,
kTypeEnable2 = 11,
kTypeEnable1 = 12,
kTypeClickEnter = 21
} |
|
enum | State {
kStateFilledDisabled = 0xC,
kStateFilled = 0x8,
kStateDisabled = 0x4,
kStateType2 = 0x2,
kStateType1 = 0x1
} |
|
|
| Hotspots (GobEngine *vm) |
|
void | clear () |
|
uint16 | add (uint16 id, uint16 left, uint16 top, uint16 right, uint16 bottom, uint16 flags, uint16 key, uint16 funcEnter, uint16 funcLeave, uint16 funcPos) |
|
void | remove (uint16 id) |
|
void | removeState (uint8 state) |
|
void | push (uint8 all, bool force=false) |
|
void | pop () |
|
uint16 | check (uint8 handleMouse, int16 delay, uint16 &id, uint16 &index) |
|
uint16 | check (uint8 handleMouse, int16 delay) |
|
void | evaluate () |
|
int16 | findCursor (uint16 x, uint16 y) const |
|
void | oPlaytoons_F_1B () |
|
|
static const int | kHotspotCount = 250 |
|
◆ clear()
void Gob::Hotspots::clear |
( |
| ) |
|
◆ add()
uint16 Gob::Hotspots::add |
( |
uint16 |
id, |
|
|
uint16 |
left, |
|
|
uint16 |
top, |
|
|
uint16 |
right, |
|
|
uint16 |
bottom, |
|
|
uint16 |
flags, |
|
|
uint16 |
key, |
|
|
uint16 |
funcEnter, |
|
|
uint16 |
funcLeave, |
|
|
uint16 |
funcPos |
|
) |
| |
Add a hotspot, returning the new index.
◆ remove()
void Gob::Hotspots::remove |
( |
uint16 |
id | ) |
|
Remove a specific hotspot.
◆ removeState()
void Gob::Hotspots::removeState |
( |
uint8 |
state | ) |
|
Remove all hotspots in this state.
◆ push()
void Gob::Hotspots::push |
( |
uint8 |
all, |
|
|
bool |
force = false |
|
) |
| |
Push the current hotspots onto the stack.
- Parameters
-
all | 0: Don't push global ones; 1: Push all; 2: Push only the disabled ones |
force | Force a push although _shouldPush is false |
◆ pop()
void Gob::Hotspots::pop |
( |
| ) |
|
Pop hotspots from the stack.
◆ check() [1/2]
uint16 Gob::Hotspots::check |
( |
uint8 |
handleMouse, |
|
|
int16 |
delay, |
|
|
uint16 & |
id, |
|
|
uint16 & |
index |
|
) |
| |
Check the current hotspot.
◆ check() [2/2]
uint16 Gob::Hotspots::check |
( |
uint8 |
handleMouse, |
|
|
int16 |
delay |
|
) |
| |
Check the current hotspot.
◆ evaluate()
void Gob::Hotspots::evaluate |
( |
| ) |
|
Evaluate hotspot changes.
◆ findCursor()
int16 Gob::Hotspots::findCursor |
( |
uint16 |
x, |
|
|
uint16 |
y |
|
) |
| const |
Return the cursor found in the hotspot to the coordinates.
◆ oPlaytoons_F_1B()
void Gob::Hotspots::oPlaytoons_F_1B |
( |
| ) |
|
implementation of oPlaytoons_F_1B code
The documentation for this class was generated from the following file: