… | |
… | |
1455 | const_iv (MOOD_FLOOR) const_iv (EXIT) const_iv (ENCOUNTER) const_iv (SHOP_FLOOR) |
1455 | const_iv (MOOD_FLOOR) const_iv (EXIT) const_iv (ENCOUNTER) const_iv (SHOP_FLOOR) |
1456 | const_iv (SHOP_MAT) const_iv (RING) const_iv (FLOOR) const_iv (FLESH) |
1456 | const_iv (SHOP_MAT) const_iv (RING) const_iv (FLOOR) const_iv (FLESH) |
1457 | const_iv (INORGANIC) const_iv (SKILL_TOOL) const_iv (LIGHTER) const_iv (BUILDABLE_WALL) |
1457 | const_iv (INORGANIC) const_iv (SKILL_TOOL) const_iv (LIGHTER) const_iv (BUILDABLE_WALL) |
1458 | const_iv (MISC_OBJECT) const_iv (LAMP) const_iv (DUPLICATOR) const_iv (SPELLBOOK) |
1458 | const_iv (MISC_OBJECT) const_iv (LAMP) const_iv (DUPLICATOR) const_iv (SPELLBOOK) |
1459 | const_iv (CLOAK) const_iv (SPINNER) const_iv (GATE) const_iv (BUTTON) |
1459 | const_iv (CLOAK) const_iv (SPINNER) const_iv (GATE) const_iv (BUTTON) |
1460 | const_iv (T_HANDLE) const_iv (HOLE) const_iv (TRAPDOOR) const_iv (SIGN) |
1460 | const_iv (T_HANDLE) const_iv (HOLE) const_iv (TRAPDOOR) const_iv (SIGN) |
1461 | const_iv (BOOTS) const_iv (GLOVES) const_iv (SPELL) const_iv (SPELL_EFFECT) |
1461 | const_iv (BOOTS) const_iv (GLOVES) const_iv (SPELL) const_iv (SPELL_EFFECT) |
1462 | const_iv (CONVERTER) const_iv (BRACERS) const_iv (POISONING) const_iv (SAVEBED) |
1462 | const_iv (CONVERTER) const_iv (BRACERS) const_iv (POISONING) const_iv (SAVEBED) |
1463 | const_iv (WAND) const_iv (SCROLL) const_iv (DIRECTOR) const_iv (GIRDLE) |
1463 | const_iv (WAND) const_iv (SCROLL) const_iv (DIRECTOR) const_iv (GIRDLE) |
1464 | const_iv (FORCE) const_iv (POTION_EFFECT) const_iv (EVENT_CONNECTOR) const_iv (CLOSE_CON) |
1464 | const_iv (FORCE) const_iv (POTION_EFFECT) const_iv (EVENT_CONNECTOR) const_iv (CLOSE_CON) |
1465 | const_iv (CONTAINER) const_iv (ARMOUR_IMPROVER) const_iv (WEAPON_IMPROVER) const_iv (SKILLSCROLL) |
1465 | const_iv (CONTAINER) const_iv (ARMOUR_IMPROVER) const_iv (WEAPON_IMPROVER) const_iv (SKILLSCROLL) |
1466 | const_iv (DEEP_SWAMP) const_iv (IDENTIFY_ALTAR) const_iv (MENU) const_iv (RUNE) |
1466 | const_iv (DEEP_SWAMP) const_iv (IDENTIFY_ALTAR) const_iv (MENU) const_iv (RUNE) |
1467 | const_iv (TRAP) const_iv (POWER_CRYSTAL) const_iv (CORPSE) const_iv (DISEASE) |
1467 | const_iv (TRAP) const_iv (POWER_CRYSTAL) const_iv (CORPSE) const_iv (DISEASE) |
1468 | const_iv (SYMPTOM) const_iv (BUILDER) const_iv (MATERIAL) const_iv (ITEM_TRANSFORMER) |
1468 | const_iv (SYMPTOM) const_iv (BUILDER) const_iv (MATERIAL) const_iv (ITEM_TRANSFORMER) |
1469 | const_iv (MAPSCRIPT) const_iv (SAFE_GROUND) |
1469 | const_iv (MAPSCRIPT) const_iv (SAFE_GROUND) const_iv (VEIN) |
1470 | |
1470 | |
1471 | const_iv (NUM_TYPES) const_iv (NUM_SUBTYPES) |
1471 | const_iv (NUM_TYPES) const_iv (NUM_SUBTYPES) |
1472 | |
1472 | |
1473 | const_iv (ST_BD_BUILD) const_iv (ST_BD_REMOVE) |
1473 | const_iv (ST_BD_BUILD) const_iv (ST_BD_REMOVE) |
1474 | const_iv (ST_MAT_FLOOR) const_iv (ST_MAT_WALL) const_iv (ST_MAT_ITEM) |
1474 | const_iv (ST_MAT_FLOOR) const_iv (ST_MAT_WALL) const_iv (ST_MAT_ITEM) |
… | |
… | |
1520 | const_iv (NDI_NOCREATE) const_iv (NDI_CLEAR) const_iv (NDI_VERBATIM) |
1520 | const_iv (NDI_NOCREATE) const_iv (NDI_CLEAR) const_iv (NDI_VERBATIM) |
1521 | |
1521 | |
1522 | const_iv (UPD_LOCATION) const_iv (UPD_FLAGS) const_iv (UPD_WEIGHT) const_iv (UPD_FACE) |
1522 | const_iv (UPD_LOCATION) const_iv (UPD_FLAGS) const_iv (UPD_WEIGHT) const_iv (UPD_FACE) |
1523 | const_iv (UPD_NAME) const_iv (UPD_ANIM) const_iv (UPD_ANIMSPEED) const_iv (UPD_NROF) |
1523 | const_iv (UPD_NAME) const_iv (UPD_ANIM) const_iv (UPD_ANIMSPEED) const_iv (UPD_NROF) |
1524 | |
1524 | |
1525 | const_iv (UPD_SP_MANA) const_iv (UPD_SP_GRACE) const_iv (UPD_SP_DAMAGE) |
1525 | const_iv (UPD_SP_MANA) const_iv (UPD_SP_GRACE) const_iv (UPD_SP_LEVEL) |
1526 | |
1526 | |
1527 | const_iv (SP_RAISE_DEAD) |
1527 | const_iv (SP_RAISE_DEAD) |
1528 | const_iv (SP_RUNE) |
1528 | const_iv (SP_RUNE) |
1529 | const_iv (SP_MAKE_MARK) |
1529 | const_iv (SP_MAKE_MARK) |
1530 | const_iv (SP_BOLT) |
1530 | const_iv (SP_BOLT) |
… | |
… | |
1608 | const_iv (SK_WOODSMAN) const_iv (SK_INSCRIPTION) const_iv (SK_ONE_HANDED_WEAPON) const_iv (SK_MISSILE_WEAPON) |
1608 | const_iv (SK_WOODSMAN) const_iv (SK_INSCRIPTION) const_iv (SK_ONE_HANDED_WEAPON) const_iv (SK_MISSILE_WEAPON) |
1609 | const_iv (SK_THROWING) const_iv (SK_USE_MAGIC_ITEM) const_iv (SK_DISARM_TRAPS) const_iv (SK_SET_TRAP) |
1609 | const_iv (SK_THROWING) const_iv (SK_USE_MAGIC_ITEM) const_iv (SK_DISARM_TRAPS) const_iv (SK_SET_TRAP) |
1610 | const_iv (SK_THAUMATURGY) const_iv (SK_PRAYING) const_iv (SK_CLAWING) const_iv (SK_LEVITATION) |
1610 | const_iv (SK_THAUMATURGY) const_iv (SK_PRAYING) const_iv (SK_CLAWING) const_iv (SK_LEVITATION) |
1611 | const_iv (SK_SUMMONING) const_iv (SK_PYROMANCY) const_iv (SK_EVOCATION) const_iv (SK_SORCERY) |
1611 | const_iv (SK_SUMMONING) const_iv (SK_PYROMANCY) const_iv (SK_EVOCATION) const_iv (SK_SORCERY) |
1612 | const_iv (SK_TWO_HANDED_WEAPON) const_iv (SK_SPARK_TOUCH) const_iv (SK_SHIVER) const_iv (SK_ACID_SPLASH) |
1612 | const_iv (SK_TWO_HANDED_WEAPON) const_iv (SK_SPARK_TOUCH) const_iv (SK_SHIVER) const_iv (SK_ACID_SPLASH) |
1613 | const_iv (SK_POISON_NAIL) |
1613 | const_iv (SK_POISON_NAIL) const_iv (SK_MINING) const_iv (SK_FISHING) |
1614 | |
1614 | |
1615 | const_iv (SOUND_NEW_PLAYER) const_iv (SOUND_FIRE_ARROW) const_iv (SOUND_LEARN_SPELL) const_iv (SOUND_FUMBLE_SPELL) |
1615 | const_iv (SOUND_NEW_PLAYER) const_iv (SOUND_FIRE_ARROW) const_iv (SOUND_LEARN_SPELL) const_iv (SOUND_FUMBLE_SPELL) |
1616 | const_iv (SOUND_WAND_POOF) const_iv (SOUND_OPEN_DOOR) const_iv (SOUND_PUSH_PLAYER) const_iv (SOUND_PLAYER_HITS1) |
1616 | const_iv (SOUND_WAND_POOF) const_iv (SOUND_OPEN_DOOR) const_iv (SOUND_PUSH_PLAYER) const_iv (SOUND_PLAYER_HITS1) |
1617 | const_iv (SOUND_PLAYER_HITS2) const_iv (SOUND_PLAYER_HITS3) const_iv (SOUND_PLAYER_HITS4) const_iv (SOUND_PLAYER_IS_HIT1) |
1617 | const_iv (SOUND_PLAYER_HITS2) const_iv (SOUND_PLAYER_HITS3) const_iv (SOUND_PLAYER_HITS4) const_iv (SOUND_PLAYER_IS_HIT1) |
1618 | const_iv (SOUND_PLAYER_IS_HIT2) const_iv (SOUND_PLAYER_IS_HIT3) const_iv (SOUND_PLAYER_KILLS) const_iv (SOUND_PET_IS_KILLED) |
1618 | const_iv (SOUND_PLAYER_IS_HIT2) const_iv (SOUND_PLAYER_IS_HIT3) const_iv (SOUND_PLAYER_KILLS) const_iv (SOUND_PET_IS_KILLED) |
… | |
… | |
1822 | } |
1822 | } |
1823 | |
1823 | |
1824 | void server_tick () |
1824 | void server_tick () |
1825 | CODE: |
1825 | CODE: |
1826 | { |
1826 | { |
|
|
1827 | ev_now_update (EV_DEFAULT); |
1827 | NOW = ev_now (EV_DEFAULT); |
1828 | NOW = ev_now (EV_DEFAULT); |
1828 | SvNV_set (sv_now, NOW); SvNOK_only (sv_now); |
1829 | SvNV_set (sv_now, NOW); SvNOK_only (sv_now); |
1829 | SvNV_set (sv_tick_start, NOW); SvNOK_only (sv_tick_start); |
1830 | SvNV_set (sv_tick_start, NOW); SvNOK_only (sv_tick_start); |
1830 | runtime = SvNVX (sv_runtime); |
1831 | runtime = SvNVX (sv_runtime); |
1831 | |
1832 | |
1832 | server_tick (); |
1833 | server_tick (); |
1833 | |
1834 | |
1834 | NOW = ev_time (); |
1835 | ev_now_update (EV_DEFAULT); |
|
|
1836 | NOW = ev_now (EV_DEFAULT); |
1835 | SvNV_set (sv_now, NOW); SvNOK_only (sv_now); |
1837 | SvNV_set (sv_now, NOW); SvNOK_only (sv_now); |
1836 | runtime += TICK; |
1838 | runtime += TICK; |
1837 | SvNV_set (sv_runtime, runtime); SvNOK_only (sv_runtime); |
1839 | SvNV_set (sv_runtime, runtime); SvNOK_only (sv_runtime); |
1838 | } |
1840 | } |
1839 | |
1841 | |
… | |
… | |
2218 | |
2220 | |
2219 | int apply_shop_mat (object *shop_mat, object *op); |
2221 | int apply_shop_mat (object *shop_mat, object *op); |
2220 | |
2222 | |
2221 | int move (object *op, int dir, object *originator = op) |
2223 | int move (object *op, int dir, object *originator = op) |
2222 | CODE: |
2224 | CODE: |
2223 | RETVAL = move_ob (op, dir, originator); |
2225 | RETVAL = op->move (dir, originator); |
2224 | OUTPUT: |
2226 | OUTPUT: |
2225 | RETVAL |
2227 | RETVAL |
2226 | |
2228 | |
2227 | void apply (object *applier, object *applied, int flags = 0) |
|
|
2228 | CODE: |
|
|
2229 | manual_apply (applied, applier, flags); |
|
|
2230 | |
|
|
2231 | void apply_below (object *op) |
2229 | void apply_below (object *op) |
2232 | CODE: |
2230 | CODE: |
2233 | player_apply_below (op); |
2231 | player_apply_below (op); |
2234 | |
2232 | |
2235 | int cast_heal (object *op, object *caster, object *spell, int dir = 0) |
2233 | int cast_heal (object *op, object *caster, object *spell, int dir = 0) |
… | |
… | |
2295 | |
2293 | |
2296 | void handle_apply_yield (object *op) |
2294 | void handle_apply_yield (object *op) |
2297 | |
2295 | |
2298 | int convert_item (object *item, object *converter) |
2296 | int convert_item (object *item, object *converter) |
2299 | |
2297 | |
|
|
2298 | void fix_generated_item (object *op, object *creator, int difficulty, int max_magic, int flags); |
2300 | |
2299 | |
2301 | MODULE = cf PACKAGE = cf::object PREFIX = cf_ |
2300 | MODULE = cf PACKAGE = cf::object PREFIX = cf_ |
2302 | |
2301 | |
2303 | # no clean way to get an object from an archetype - stupid idiotic |
2302 | # no clean way to get an object from an archetype - stupid idiotic |
2304 | # dumb kludgy misdesigned plug-in api slowly gets on my nerves. |
2303 | # dumb kludgy misdesigned plug-in api slowly gets on my nerves. |
… | |
… | |
2308 | CODE: |
2307 | CODE: |
2309 | RETVAL = archetype ? get_archetype (archetype) : object::create (); |
2308 | RETVAL = archetype ? get_archetype (archetype) : object::create (); |
2310 | OUTPUT: |
2309 | OUTPUT: |
2311 | RETVAL |
2310 | RETVAL |
2312 | |
2311 | |
|
|
2312 | object *generate (utf8_string arch, object *creator) |
|
|
2313 | CODE: |
|
|
2314 | object *obj = get_archetype (arch); |
|
|
2315 | fix_generated_item (obj, creator, 0, 0, GT_MINIMAL); |
|
|
2316 | RETVAL = obj; |
|
|
2317 | OUTPUT: |
|
|
2318 | RETVAL |
|
|
2319 | |
2313 | object *find_object (U32 tag) |
2320 | object *find_object (U32 tag) |
|
|
2321 | |
|
|
2322 | object *find_object_uuid (UUID i) |
2314 | |
2323 | |
2315 | # TODO: nuke |
2324 | # TODO: nuke |
2316 | object *insert_ob_in_map_at (object *ob, maptile *where, object_ornull *orig, int flag, int x, int y) |
2325 | object *insert_ob_in_map_at (object *ob, maptile *where, object_ornull *orig, int flag, int x, int y) |
2317 | PROTOTYPE: $$$$$$ |
2326 | PROTOTYPE: $$$$$$ |
2318 | CODE: |
2327 | CODE: |
… | |
… | |
2379 | CODE: |
2388 | CODE: |
2380 | RETVAL = op->contr; |
2389 | RETVAL = op->contr; |
2381 | OUTPUT: RETVAL |
2390 | OUTPUT: RETVAL |
2382 | |
2391 | |
2383 | bool move_player (object *op, int dir) |
2392 | bool move_player (object *op, int dir) |
2384 | |
|
|
2385 | void check_score (object *op) |
|
|
2386 | |
2393 | |
2387 | void message (object *op, utf8_string txt, int flags = NDI_ORANGE | NDI_UNIQUE) |
2394 | void message (object *op, utf8_string txt, int flags = NDI_ORANGE | NDI_UNIQUE) |
2388 | CODE: |
2395 | CODE: |
2389 | new_draw_info (flags, 0, op, txt); |
2396 | new_draw_info (flags, 0, op, txt); |
2390 | |
2397 | |
… | |
… | |
2754 | utf8_string monsterstyle,\ |
2761 | utf8_string monsterstyle,\ |
2755 | utf8_string treasurestyle,\ |
2762 | utf8_string treasurestyle,\ |
2756 | utf8_string layoutstyle,\ |
2763 | utf8_string layoutstyle,\ |
2757 | utf8_string doorstyle,\ |
2764 | utf8_string doorstyle,\ |
2758 | utf8_string decorstyle,\ |
2765 | utf8_string decorstyle,\ |
|
|
2766 | utf8_string miningstyle,\ |
2759 | utf8_string origin_map,\ |
2767 | utf8_string origin_map,\ |
2760 | utf8_string final_map,\ |
2768 | utf8_string final_map,\ |
2761 | utf8_string exitstyle,\ |
2769 | utf8_string exitstyle,\ |
2762 | utf8_string this_map,\ |
2770 | utf8_string this_map,\ |
2763 | utf8_string exit_on_final_map,\ |
2771 | utf8_string exit_on_final_map,\ |
… | |
… | |
2795 | assign (rmp.monsterstyle , monsterstyle); |
2803 | assign (rmp.monsterstyle , monsterstyle); |
2796 | assign (rmp.treasurestyle , treasurestyle); |
2804 | assign (rmp.treasurestyle , treasurestyle); |
2797 | assign (rmp.layoutstyle , layoutstyle); |
2805 | assign (rmp.layoutstyle , layoutstyle); |
2798 | assign (rmp.doorstyle , doorstyle); |
2806 | assign (rmp.doorstyle , doorstyle); |
2799 | assign (rmp.decorstyle , decorstyle); |
2807 | assign (rmp.decorstyle , decorstyle); |
|
|
2808 | assign (rmp.miningstyle , miningstyle); |
2800 | assign (rmp.exitstyle , exitstyle); |
2809 | assign (rmp.exitstyle , exitstyle); |
2801 | assign (rmp.exit_on_final_map, exit_on_final_map); |
2810 | assign (rmp.exit_on_final_map, exit_on_final_map); |
2802 | |
2811 | |
2803 | rmp.origin_map = origin_map; |
2812 | rmp.origin_map = origin_map; |
2804 | rmp.final_map = final_map; |
2813 | rmp.final_map = final_map; |