21 #ifndef ULTIMA8_WORLD_EGG_H 22 #define ULTIMA8_WORLD_EGG_H 24 #include "ultima/ultima8/world/item.h" 25 #include "ultima/ultima8/usecode/intrinsics.h" 36 ENABLE_RUNTIME_CLASSTYPE()
38 int getXRange()
const {
39 return (_npcNum >> 4) & 0xF;
41 int getYRange()
const {
45 void setXRange(
int r) {
47 _npcNum |= (r & 0xF) << 4;
49 void setYRange(
int r) {
55 virtual uint16
hatch();
73 INTRINSIC(I_getEggXRange);
74 INTRINSIC(I_getEggYRange);
75 INTRINSIC(I_setEggXRange);
76 INTRINSIC(I_setEggYRange);
77 INTRINSIC(I_getEggId);
78 INTRINSIC(I_setEggId);
Common::String dumpInfo() const override
dump some info about this object to a string
virtual uint16 unhatch()
unhatch the egg (for Crusader only)
virtual uint16 hatch()
hatch the egg
Definition: detection.h:27
void reset()
clear the '_hatched' flag
Definition: egg.h:64
void leaveFastArea() override
The item has left the fast area.
Definition: item_factory.h:32