|
Crossfire Server
1.75.0
|
Core defines: object types, flags, etc. More...
#include <autoconf.h>Go to the source code of this file.
Data Structures | |
| struct | typedata |
| Link an object type with skill needed to identify, and general name. More... | |
Macros | |
| #define | AC_PLAYER_STAT_LIMIT 1 |
| Limit stats to racial maximum. More... | |
| #define | AC_PLAYER_STAT_NO_CHANGE 2 |
| Do not make any stat adjustments. More... | |
| #define | ALLRUN 6 |
| Always run, never attack good for sim. More... | |
| #define | AP_APPLY 1 |
| Item is to be applied. More... | |
| #define | AP_BASIC_FLAGS 15 |
| #define | AP_IGNORE_CURSE 32 |
| Apply/unapply regardless of cursed/damned status. More... | |
| #define | AP_NO_MERGE 16 |
| Don't try to merge object after (un)applying it. More... | |
| #define | AP_NOPRINT 128 |
| Don't print messages - caller will do that may be some that still print. More... | |
| #define | AP_NULL 0 |
| Nothing specific. More... | |
| #define | AP_OPEN 3 |
| Item is a container to be fully opened. More... | |
| #define | AP_PRINT 64 |
| Print what to do, don't actually do it Note this is supported in all the functions. More... | |
| #define | AP_UNAPPLY 2 |
| Item is to be remvoed. More... | |
| #define | ARMOUR_SPEED(xyz) (xyz)->last_sp |
| #define | ARMOUR_SPELLS(xyz) (xyz)->gen_sp_armour |
| #define | BIG_NAME 32 |
| #define | BLANK_FACE_NAME "blank.111" |
| #define | CAN_APPLY_NEVER 0x1 |
| #define | CAN_APPLY_NOT_MASK 0xf |
| #define | CAN_APPLY_RESTRICTION 0x2 |
| #define | CAN_APPLY_UNAPPLY 0x10 |
| #define | CAN_APPLY_UNAPPLY_CHOICE 0x40 |
| #define | CAN_APPLY_UNAPPLY_MULT 0x20 |
| #define | CIRCLE1 32 |
| If the upper four bits of move_type / attack_movement are set to this number, the monster will move in a circle until it is attacked, or the enemy field is set, this is good for non-aggressive monsters and NPC. More... | |
| #define | CIRCLE2 48 |
| Same as CIRCLE1 but a larger circle is used. More... | |
| #define | CLEAR_FLAG(xyz, p) clear_flag(xyz, p) |
| #define | DIRX(xyz) freearr_x[(xyz)->direction] |
| #define | DIRY(xyz) freearr_y[(xyz)->direction] |
| #define | DISTATT 1 |
| Move toward a player if far, but maintain some space, attack from a distance - good for missile users only. More... | |
| #define | DISTHIT 7 |
| Attack from a distance if hit as recommended by Frank. More... | |
| #define | EMPTY_FACE_NAME "empty.111" |
| #define | EXIT_ALT_X(xyz) (xyz)->stats.maxhp |
| #define | EXIT_ALT_Y(xyz) (xyz)->stats.maxsp |
| #define | EXIT_LEVEL(xyz) (xyz)->stats.food |
| #define | EXIT_PATH(xyz) (xyz)->slaying |
| #define | EXIT_X(xyz) (xyz)->stats.hp |
| #define | EXIT_Y(xyz) (xyz)->stats.sp |
| #define | FABS(x) ((x) < 0 ? -(x) : (x)) |
| Decstations have trouble with fabs()... More... | |
| #define | FLAG_ACTIVATE_ON_PUSH 105 |
| connected object is activated when 'pushed' More... | |
| #define | FLAG_ACTIVATE_ON_RELEASE 106 |
| connected object is activated when 'released' More... | |
| #define | FLAG_AFK 111 |
| Player is AFK. More... | |
| #define | FLAG_ALIVE 0 |
| Object can fight (or be fought) More... | |
| #define | FLAG_ANIMATE 11 |
| The object looks at archetype for faces. More... | |
| #define | FLAG_APPLIED 5 |
| Object is ready for use by living. More... | |
| #define | FLAG_AUTO_APPLY 18 |
| Will be applied when created. More... | |
| #define | FLAG_BEEN_APPLIED 80 |
| Object was ever applied, for identification purposes. More... | |
| #define | FLAG_BERSERK 99 |
| monster will attack closest living object More... | |
| #define | FLAG_BLESSED 112 |
| Item has a blessing, opposite of cursed/damned. More... | |
| #define | FLAG_BLIND 92 |
| If set, object cannot see (visually) More... | |
| #define | FLAG_BLOCKSVIEW 35 |
| Object blocks view. More... | |
| #define | FLAG_CAN_ROLL 22 |
| Object can be rolled. More... | |
| #define | FLAG_CAN_USE_SKILL 79 |
| The monster can use skills. More... | |
| #define | FLAG_CAST_SPELL 52 |
| (Monster) can learn and cast spells More... | |
| #define | FLAG_CHANGING 31 |
| Changes to other_arch when anim is done. More... | |
| #define | FLAG_CLIENT_ANIM_RANDOM 10 |
| Client animate this, randomized. More... | |
| #define | FLAG_CLIENT_ANIM_SYNC 9 |
| Let client animate this, synchronized. More... | |
| #define | FLAG_CLIENT_SENT 98 |
| We use it to detect cases were the server is trying to send an upditem when we have not actually sent the item. More... | |
| #define | FLAG_CONFUSED 70 |
| Will also be unable to cast spells. More... | |
| #define | FLAG_CONTENT_ON_GEN 108 |
UseMore... | |
| #define | FLAG_CURSED 74 |
| The object is cursed. More... | |
| #define | FLAG_DAMNED 75 |
| The object is very cursed. More... | |
| #define | FLAG_DIALOG_PARSED 12 |
| Was the object::msg field parsed? Temporary flag not saved. More... | |
| #define | FLAG_FREED 3 |
| Object is in the list of free objects. More... | |
| #define | FLAG_FRIENDLY 15 |
| Will help players. More... | |
| #define | FLAG_GENERATOR 16 |
| Will generate type ob->stats.food. More... | |
| #define | FLAG_HITBACK 33 |
| Object will hit back when hit. More... | |
| #define | FLAG_IDENTIFIED 29 |
| Item is identifiable (e.g. More... | |
| #define | FLAG_INV_LOCKED 86 |
| Item will not be dropped from inventory. More... | |
| #define | FLAG_IS_A_TEMPLATE 109 |
| Object has no ingame life until instantiated. More... | |
| #define | FLAG_IS_BUILDABLE 110 |
| Can build on item. More... | |
| #define | FLAG_IS_CAULDRON 94 |
| container can make alchemical stuff More... | |
| #define | FLAG_IS_FLOOR 63 |
| Can't see what's underneath this object. More... | |
| #define | FLAG_IS_HILLY 88 |
| Item is hilly/mountain terrain. More... | |
| #define | FLAG_IS_LIGHTABLE 43 |
| object can be lit More... | |
| #define | FLAG_IS_LINKED 73 |
| The object is linked with other objects. More... | |
| #define | FLAG_IS_THROWN 17 |
| Object is designed to be thrown. More... | |
| #define | FLAG_IS_TURNABLE 24 |
| Object can change face with direction. More... | |
| #define | FLAG_IS_USED_UP 28 |
| When (–food<0) the object will exit. More... | |
| #define | FLAG_IS_WATER 107 |
| #define | FLAG_IS_WOODED 87 |
| Item is wooded terrain. More... | |
| #define | FLAG_KNOWN_BLESSED 113 |
| Item is known to be blessed. More... | |
| #define | FLAG_KNOWN_CURSED 78 |
| The object is known to be cursed. More... | |
| #define | FLAG_KNOWN_MAGICAL 77 |
| The object is known to be magical. More... | |
| #define | FLAG_LIFESAVE 64 |
| Saves a players' life once, then destr. More... | |
| #define | FLAG_MAKE_INVIS 85 |
| (Item) gives invisibility when applied More... | |
| #define | FLAG_MONSTER 14 |
| Will attack players. More... | |
| #define | FLAG_NEUTRAL 100 |
| monster is from type neutral More... | |
| #define | FLAG_NO_APPLY 62 |
| Avoids step_on/fly_on to this object. More... | |
| #define | FLAG_NO_ATTACK 101 |
| monster don't attack More... | |
| #define | FLAG_NO_DAMAGE 102 |
| monster can't be damaged More... | |
| #define | FLAG_NO_DROP 50 |
| Object can't be dropped. More... | |
| #define | FLAG_NO_FIX_PLAYER 42 |
| fix_object() won't be called More... | |
| #define | FLAG_NO_MAGIC 41 |
| Spells (some) can't pass this object. More... | |
| #define | FLAG_NO_PICK 8 |
| Object can't be picked up. More... | |
| #define | FLAG_NO_SAVE 13 |
| If set (through plugins), the object is not saved on maps. More... | |
| #define | FLAG_NO_SKILL_IDENT 91 |
| If set, item cannot be identified w/ a skill. More... | |
| #define | FLAG_NO_STEAL 96 |
| Item can't be stolen. More... | |
| #define | FLAG_NO_STRENGTH 65 |
| Strength-bonus not added to wc/dam. More... | |
| #define | FLAG_OBJ_ORIGINAL 103 |
| NEVER SET THIS. More... | |
| #define | FLAG_ONE_HIT 97 |
| Monster can only hit once before going away (replaces ghosthit) More... | |
| #define | FLAG_ONLY_ATTACK 69 |
| NPC will evaporate if there is no enemy. More... | |
| #define | FLAG_OVERLAY_FLOOR 23 |
| Object is an overlay floor. More... | |
| #define | FLAG_PARALYZED 114 |
| Monster or player is paralyzed. More... | |
| #define | FLAG_PLAYER_SOLD 20 |
| Object was sold to a shop by a player. More... | |
| #define | FLAG_PROBE 25 |
| Object displays HP information to player. More... | |
| #define | FLAG_RANDOM_MOVE 68 |
| NPC will move randomly. More... | |
| #define | FLAG_READY_BOW 60 |
| not implemented yet More... | |
| #define | FLAG_READY_RANGE 59 |
| (Monster) has a range attack readied... More... | |
| #define | FLAG_READY_SCROLL 81 |
| monster has scroll in inv and can use it More... | |
| #define | FLAG_READY_SKILL 89 |
| (Monster or Player) has a skill readied More... | |
| #define | FLAG_READY_WEAPON 90 |
| (Monster or Player) has a weapon readied More... | |
| #define | FLAG_REFL_MISSILE 39 |
| Arrows will reflect from object. More... | |
| #define | FLAG_REFL_SPELL 40 |
| Spells (some) will reflect from object. More... | |
| #define | FLAG_REFLECTING 30 |
| Object reflects from walls (lightning) More... | |
| #define | FLAG_REMOVED 2 |
| Object is not in any map or invenory. More... | |
| #define | FLAG_RUN_AWAY 45 |
| Object runs away from nearest player \ but can still attack at a distance. More... | |
| #define | FLAG_SCARED 37 |
| Monster is scared (mb player in future) More... | |
| #define | FLAG_SEE_ANYWHERE 76 |
| The object will be visible behind walls. More... | |
| #define | FLAG_SEE_IN_DARK 93 |
| if set ob not effected by darkness More... | |
| #define | FLAG_SEE_INVISIBLE 21 |
| Will see invisible player. More... | |
| #define | FLAG_SLEEP 66 |
| NPC is sleeping. More... | |
| #define | FLAG_SPLITTING 32 |
| Object splits into stats.food other objs. More... | |
| #define | FLAG_STAND_STILL 67 |
| NPC will not (ever) move. More... | |
| #define | FLAG_STARTEQUIP 34 |
| Object was given to player at start. More... | |
| #define | FLAG_STEALTH 71 |
| Will wake monsters with less range. More... | |
| #define | FLAG_TEAR_DOWN 44 |
| at->faces[hp*animations/maxhp] at hit More... | |
| #define | FLAG_TREASURE 19 |
| Will generate treasure when applied. More... | |
| #define | FLAG_UNAGGRESSIVE 38 |
| Monster doesn't attack players. More... | |
| #define | FLAG_UNDEAD 36 |
| Monster is undead. More... | |
| #define | FLAG_UNIQUE 49 |
| Item is really unique (UNIQUE_ITEMS) More... | |
| #define | FLAG_UNPAID 6 |
| Object hasn't been paid for yet. More... | |
| #define | FLAG_USE_ARMOUR 56 |
| (Monster) can wear armour/shield/helmet More... | |
| #define | FLAG_USE_BOW 55 |
| (Monster) can apply and fire bows More... | |
| #define | FLAG_USE_RANGE 54 |
| (Monster) can apply and use range items More... | |
| #define | FLAG_USE_RING 58 |
| (Monster) can use rings, boots, gauntlets, etc More... | |
| #define | FLAG_USE_SCROLL 53 |
| (Monster) can read scroll More... | |
| #define | FLAG_USE_SHIELD 7 |
| Can this creature use a shield? More... | |
| #define | FLAG_USE_WEAPON 57 |
| (Monster) can wield weapons More... | |
| #define | FLAG_WAS_WIZ 4 |
| Player was once a wiz. More... | |
| #define | FLAG_WIZ 1 |
| Object has special privilegies. More... | |
| #define | FLAG_WIZCAST 51 |
| The wizard can cast spells in no-magic area. More... | |
| #define | FLAG_WIZPASS 72 |
| The wizard can go through walls. More... | |
| #define | FLAG_XRAYS 61 |
| X-ray vision. More... | |
| #define | FOR_ABOVE_FINISH() |
| Finishes FOR_ABOVE_PREPARE(). More... | |
| #define | FOR_ABOVE_PREPARE(op_, it_) |
| Constructs a loop iterating over all objects above an object. More... | |
| #define | FOR_BELOW_FINISH() |
| Finishes FOR_BELOW_PREPARE(). More... | |
| #define | FOR_BELOW_PREPARE(op_, it_) |
| Constructs a loop iterating over all objects below an object. More... | |
| #define | FOR_INV_FINISH() |
| Finishes FOR_INV_PREPARE(). More... | |
| #define | FOR_INV_PREPARE(op_, it_) |
| Constructs a loop iterating over the inventory of an object. More... | |
| #define | FOR_MAP_FINISH() |
| Finishes FOR_MAP_PREPARE(). More... | |
| #define | FOR_MAP_PREPARE(map_, mx_, my_, it_) |
| Constructs a loop iterating over all objects of a map tile. More... | |
| #define | FOR_OB_AND_ABOVE_FINISH() FOR_OB_FINISH() |
| Finishes FOR_OB_AND_ABOVE_PREPARE(). More... | |
| #define | FOR_OB_AND_ABOVE_PREPARE(op_) FOR_OB_PREPARE(op_, above, __LINE__) |
| Constructs a loop iterating over an object and all objects above it in the same pile. More... | |
| #define | FOR_OB_AND_BELOW_FINISH() FOR_OB_FINISH() |
| Finishes FOR_OB_AND_BELOW_PREPARE(). More... | |
| #define | FOR_OB_AND_BELOW_PREPARE(op_) FOR_OB_PREPARE(op_, below, __LINE__) |
| Constructs a loop iterating over an object and all objects below it in the same pile. More... | |
| #define | FOR_OB_FINISH() |
| Finishes FOR_OB_PREPARE(). More... | |
| #define | FOR_OB_PREPARE(op_, field_, suffix_) FOR_OB_PREPARE2(op_, field_, suffix_) |
| Constructs a loop iterating over a set of objects. More... | |
| #define | FOR_OB_PREPARE2(op_, field_, suffix_) |
| Constructs a loop iterating over a set of objects. More... | |
| #define | GENERATE_SPEED(xyz) ((xyz)->stats.maxsp) /* if(!RANDOM()%<speed>) */ |
| #define | GENERATE_TYPE(xyz) ((xyz)->stats.sp) |
| #define | HAS_RANDOM_ITEMS(op) (op->randomitems && (!QUERY_FLAG(op, FLAG_IS_A_TEMPLATE))) |
| This return TRUE if object has still randomitems which could be expanded. More... | |
| #define | HI4 240 |
| #define | HITRUN 3 |
| Run to then hit player then run away cyclicly. More... | |
| #define | HUGE_BUF 4096 |
| Used for messages - some can be quite long. More... | |
| #define | IS_ARMOR(op) |
| #define | IS_ARROW(op) |
| #define | IS_LIVE(op) |
| #define | IS_SHIELD(op) (op->type == SHIELD) |
| #define | IS_WEAPON(op) (op->type == ARROW || op->type == BOW || op->type == WEAPON) |
| #define | LO4 15 |
| bitmasks for upper and lower 4 bits from 8 bit fields More... | |
| #define | MAX_ANIMATIONS 256 |
| #define | MAX_BUF 256 |
| Used for all kinds of things. More... | |
| #define | MAX_DARKNESS 5 |
| Maximum map darkness, there is no practical reason to exceed this. More... | |
| #define | MAX_LIGHT_RADII 4 |
| Max radii for 'light' object, really large values allow objects that can slow down the game. More... | |
| #define | MAX_NAME 48 |
| #define | MAX_WEAPON_ITEM_POWER 100 |
| Maximum item power an item can have. More... | |
| #define | MIN_ACTIVE_SPEED 0.00001 |
| Cut off point of when an object is put on the active list or not. More... | |
| #define | MIN_STAT 1 |
| The minimum legal value of any stat. More... | |
| #define | MOVE_ALL 0x1f |
| Mask of all movement types. More... | |
| #define | MOVE_BLOCK_DEFAULT MOVE_SWIM |
| The normal assumption is that objects are walking/flying. More... | |
| #define | MOVE_BOAT 0x10 |
| Boats/sailing. More... | |
| #define | MOVE_FLY_HIGH 0x4 |
| High flying object. More... | |
| #define | MOVE_FLY_LOW 0x2 |
| Low flying object. More... | |
| #define | MOVE_FLYING 0x6 |
| Combo of fly_low and fly_high. More... | |
| #define | MOVE_SWIM 0x8 |
| Swimming object. More... | |
| #define | MOVE_WALK 0x1 |
| Object walks. More... | |
| #define | NAME_MAX 255 |
| NAME_MAX used by random maps may not be defined on pure ansi systems. More... | |
| #define | NROF_SOUNDS (23+NROFREALSPELLS) /* Number of sounds */ |
| #define | NUM_FLAGS 114 |
| Should always be equal to the last defined flag. More... | |
| #define | OB_MOVE_BLOCK(ob1, ob2) ob_move_block(ob1, ob2) |
| #define | OB_TYPE_MOVE_BLOCK(ob1, type) ((type != 0) && (ob1->move_type&type) == ob1->move_type) |
| Basic macro to see if if ob1 can not move onto a space based on the 'type' move_block parameter Add check - if type is 0, don't stop anything from moving onto it. More... | |
| #define | PACEH 64 |
| The monster will pace back and forth until attacked. More... | |
| #define | PACEH2 80 |
| The monster will pace as above but the length of the pace area is longer and the monster stops before changing directions. More... | |
| #define | PACEV 128 |
| The monster will pace back and forth until attacked. More... | |
| #define | PACEV2 144 |
| The monster will pace as above but the length of the pace area is longer and the monster stops before changing directions. More... | |
| #define | PETMOVE 16 |
| If the upper four bits of attack_movement are set to this number, the monster follows a player until the owner calls it back or off player followed denoted by ob->owner the monster will try to attack whatever the player is attacking, and will continue to do so until the calls off the monster - a key command will be inserted to do so. More... | |
| #define | PREFER_HIGH 1 |
| #define | PREFER_LOW 0 |
| #define | PU_ARMOUR 0x00000800 |
| #define | PU_ARROW 0x00000100 |
| #define | PU_BOOTS 0x00001000 |
| #define | PU_BOW 0x00000080 |
| #define | PU_CLOAK 0x00004000 |
| #define | PU_CONTAINER 0x08000000 |
| #define | PU_CURSED 0x10000000 |
| #define | PU_DEBUG 0x10000000 |
| #define | PU_DRINK 0x00000020 |
| #define | PU_FLESH 0x04000000 |
| #define | PU_FOOD 0x00000010 |
| #define | PU_GLOVES 0x00002000 |
| #define | PU_HELMET 0x00000200 |
| #define | PU_INHIBIT 0x20000000 |
| #define | PU_JEWELS 0x02000000 |
| #define | PU_KEY 0x00008000 |
| #define | PU_MAGIC_DEVICE 0x00800000 |
| #define | PU_MAGICAL 0x00040000 |
| #define | PU_MELEEWEAPON 0x00020000 |
| #define | PU_MISSILEWEAPON 0x00010000 |
| #define | PU_NEWMODE 0x80000000 |
| #define | PU_NOT_CURSED 0x01000000 |
| #define | PU_NOTHING 0x00000000 |
| #define | PU_POTION 0x00080000 |
| #define | PU_RATIO 0x0000000F |
| #define | PU_READABLES 0x00400000 |
| #define | PU_SHIELD 0x00000400 |
| #define | PU_SKILLSCROLL 0x00200000 |
| #define | PU_SPELLBOOK 0x00100000 |
| #define | PU_STOP 0x40000000 |
| #define | PU_VALUABLES 0x00000040 |
| #define | QUERY_FLAG(xyz, p) query_flag(xyz, p) |
| #define | RANDO 96 |
| The monster will go in a random direction until it is stopped by an obstacle, then it chooses another direction. More... | |
| #define | RANDO2 112 |
| Constantly move in a different random direction. More... | |
| #define | RANDOM() cf_random() |
| #define | RUNATT 2 |
| Run but attack if player catches up to object. More... | |
| #define | RUSH 5 |
| Rush toward player blindly, similiar to dumb monster. More... | |
| #define | SET_FLAG(xyz, p) set_flag(xyz, p) |
| #define | SIZEOFFREE 49 |
| #define | SIZEOFFREE1 8 |
| #define | SIZEOFFREE2 24 |
| #define | SMOOTH_FACE_NAME "default_smoothed.111" |
| #define | SRANDOM(seed) cf_srandom(seed) |
| #define | ST_BD_BUILD 1 |
| Builds an item. More... | |
| #define | ST_BD_REMOVE 2 |
| Removes an item. More... | |
| #define | ST_CHANGE_CLASS 3 |
| New character, choosing class. More... | |
| #define | ST_CHANGE_PASSWORD_CONFIRM 13 |
| Player is confirming new password. More... | |
| #define | ST_CHANGE_PASSWORD_NEW 12 |
| Player is entering new password. More... | |
| #define | ST_CHANGE_PASSWORD_OLD 11 |
| Player is entering old password to change password. More... | |
| #define | ST_CONFIRM_PASSWORD 8 |
| New character, confirm password. More... | |
| #define | ST_CONFIRM_QUIT 4 |
| Player used the 'quit' command, make sure that's ok. More... | |
| #define | ST_GET_NAME 6 |
| Player just connected. More... | |
| #define | ST_GET_PARTY_PASSWORD 10 |
| Player tried to join a password-protected party. More... | |
| #define | ST_GET_PASSWORD 7 |
| Name entered, now for password. More... | |
| #define | ST_MAT_FLOOR 1 |
| Floor. More... | |
| #define | ST_MAT_ITEM 3 |
| Most other items, including doors & such. More... | |
| #define | ST_MAT_WALL 2 |
| Wall. More... | |
| #define | ST_MAT_WINDOW 4 |
| Window. More... | |
| #define | ST_PLAY_AGAIN 1 |
| Player left through a bed of reality, and can login again. More... | |
| #define | ST_PLAYING 0 |
| Usual state. More... | |
| #define | ST_ROLL_STAT 2 |
| New character, rolling stats. More... | |
| #define | VERY_BIG_BUF 1024 |
| #define | WAIT2 8 |
| Monster does not try to move towards player if far. More... | |
| #define | WAITATT 4 |
| Wait for player to approach then hit, move if hit. More... | |
| #define | WEAP_BLUD 8 |
| bludgeoning, club, stick More... | |
| #define | WEAP_CLEAVE 3 |
| axe More... | |
| #define | WEAP_CRUSH 7 |
| big hammers, flails More... | |
| #define | WEAP_HIT 0 |
| the basic More... | |
| #define | WEAP_PIERCE 2 |
| arrows, stiletto More... | |
| #define | WEAP_SLASH 1 |
| slash More... | |
| #define | WEAP_SLICE 4 |
| katana More... | |
| #define | WEAP_STAB 5 |
| knife, dagger More... | |
| #define | WEAP_WHIP 6 |
| whips n chains More... | |
| #define | WEAPON_SPEED(xyz) (xyz)->last_sp |
| #define | WEIGHT(op) (op->nrof ? op->weight : op->weight+op->carrying) |
| Returns the weight of the given object. More... | |
Typedefs | |
| typedef unsigned char | MoveType |
| Typdef here to define type large enough to hold bitmask of all movement types. More... | |
Enumerations | |
| enum | fatal_error { OUT_OF_MEMORY = 0, MAP_ERROR = 1, ARCHTABLE_TOO_SMALL = 2, ARCHETYPE_ISSUE = 3, SEE_LAST_ERROR = 4 } |
| Fatal variables; used as arguments to fatal(). More... | |
Functions | |
| uint32_t | cf_random (void) |
| void | cf_srandom (unsigned long seed) |
Variables | |
| static const int32_t | MAX_FOOD = 999 |
Core defines: object types, flags, etc.
This file is really too large. With all the .h files around, this file should be better split between them - things that deal with objects should be in objects.h, things dealing with players in player.h, etc. As it is, everything just seems to be dumped in here.
This file is best viewed with a window width of about 100 character.
Definition in file define.h.
| #define ARMOUR_SPEED | ( | xyz | ) | (xyz)->last_sp |
Definition at line 466 of file define.h.
Referenced by describe_item(), fix_object(), and set_abs_magic().
| #define ARMOUR_SPELLS | ( | xyz | ) | (xyz)->gen_sp_armour |
Definition at line 467 of file define.h.
Referenced by describe_item().
| #define BIG_NAME 32 |
Definition at line 42 of file define.h.
Referenced by get_score(), hiscore_check(), kill_object(), and poison_type_apply().
| #define BLANK_FACE_NAME "blank.111" |
Definition at line 576 of file define.h.
Referenced by Faces::Faces().
| #define CLEAR_FLAG | ( | xyz, | |
| p | |||
| ) | clear_flag(xyz, p) |
Definition at line 385 of file define.h.
Referenced by add_abilities(), add_object_to_socklist(), add_player(), add_shop_item(), alchemy_failure_effect(), animate_object(), animate_weapon(), apply_auto(), apply_changes_to_player(), apply_container(), apply_race_and_class(), asset_create(), attack_ob_simple(), attempt_steal(), become_follower(), blindness_type_process(), cancellation(), cast_change_ability(), cast_detection(), cast_item_curse_or_bless(), cfapi_object_set_property(), change_abil(), check_login(), clear_skill(), command_afk(), command_drop(), command_dropall(), command_lock_item(), command_mon_aggr(), command_nowiz(), command_take(), command_wizcast(), command_wizpass(), do_auto_apply(), do_item_conversion(), do_mood_floor(), do_skill(), do_turn(), drain_wand_charge(), eventListener(), examine_autoidentify(), fire_bow(), fix_container_multipart(), fix_object(), fix_summon_pet(), flee_player(), free_dialog_information(), gate_type_process(), generate_monster_inv(), get_archetype_struct(), get_player(), give_initial_items(), give_skill_by_name(), god_removes_curse(), handle_newcs_player(), hit_player(), key_change_class(), lock_item_cmd(), make_throw_ob(), mark_inv_not_removed(), monster_cast_spell(), monster_check_wakeup(), monster_do_living(), monster_find_enemy(), monster_move(), monster_npc_call_help(), monster_use_range(), monster_use_scroll(), monster_use_skill(), mood_change(), move_creator(), object_copy_no_speed(), object_give_identified_properties(), object_insert_in_map(), object_insert_in_ob(), object_remove(), object_unset_flag_inv(), peacemaker_type_process(), pets_get_enemy(), pets_summon_object(), place_fountain_with_specials(), poisoning_type_process(), polymorph_living(), potion_type_apply(), push_ob(), put_object_in_sack(), remove_button_link(), remove_curse(), remove_force(), remove_friendly_object(), runghosted(), save_life(), save_player(), shop_mat_type_move_on(), shop_pay_unpaid_callback(), tear_down_wall(), unapply_special(), update_priest_flag(), and use_oratory().
| #define DIRX | ( | xyz | ) | freearr_x[(xyz)->direction] |
Definition at line 463 of file define.h.
Referenced by common_process_projectile(), fire_arch_from_position(), fire_bolt(), move_bolt(), move_bullet(), and pets_move_golem().
| #define DIRY | ( | xyz | ) | freearr_y[(xyz)->direction] |
Definition at line 464 of file define.h.
Referenced by common_process_projectile(), fire_arch_from_position(), fire_bolt(), move_bolt(), move_bullet(), and pets_move_golem().
| #define EMPTY_FACE_NAME "empty.111" |
Definition at line 577 of file define.h.
Referenced by Faces::Faces().
| #define EXIT_ALT_X | ( | xyz | ) | (xyz)->stats.maxhp |
Definition at line 443 of file define.h.
Referenced by op_on_battleground().
| #define EXIT_ALT_Y | ( | xyz | ) | (xyz)->stats.maxsp |
Definition at line 444 of file define.h.
Referenced by op_on_battleground().
| #define EXIT_PATH | ( | xyz | ) | (xyz)->slaying |
Definition at line 439 of file define.h.
Referenced by cast_create_town_portal(), cast_word_of_recall(), command_reset(), command_summon(), command_teleport(), do_goto(), enter_exit(), enter_fixed_template_map(), enter_player_savebed(), enter_random_map(), enter_random_template_map(), enter_unique_map(), exit_type_apply(), exit_type_move_on(), get_jail_exit(), init_dynamic(), is_legal_2ways_exit(), key_change_class(), move_teleporter(), op_on_battleground(), place_exits(), player_changer_type_process(), and process_map().
| #define EXIT_X | ( | xyz | ) | (xyz)->stats.hp |
Definition at line 441 of file define.h.
Referenced by cast_create_town_portal(), cast_word_of_recall(), command_reset(), command_summon(), command_teleport(), do_goto(), enter_exit(), enter_fixed_template_map(), enter_player_savebed(), enter_random_map(), enter_random_template_map(), enter_unique_map(), get_jail_exit(), hole_type_move_on(), is_legal_2ways_exit(), key_change_class(), move_teleporter(), op_on_battleground(), place_exits(), player_changer_type_process(), town_portal_destroy_existing(), town_portal_find_force(), and trapdoor_type_move_on().
| #define EXIT_Y | ( | xyz | ) | (xyz)->stats.sp |
Definition at line 442 of file define.h.
Referenced by cast_create_town_portal(), cast_word_of_recall(), command_reset(), command_summon(), command_teleport(), do_goto(), enter_exit(), enter_fixed_template_map(), enter_player_savebed(), enter_random_map(), enter_random_template_map(), enter_unique_map(), get_jail_exit(), hole_type_move_on(), is_legal_2ways_exit(), key_change_class(), move_teleporter(), op_on_battleground(), place_exits(), player_changer_type_process(), town_portal_destroy_existing(), town_portal_find_force(), and trapdoor_type_move_on().
| #define FABS | ( | x | ) | ((x) < 0 ? -(x) : (x)) |
Decstations have trouble with fabs()...
Definition at line 22 of file define.h.
Referenced by add_object_to_socklist(), apply_can_apply_object(), attack_ob_simple(), cancellation(), cast_spell(), change_exp(), change_luck(), command_debug(), describe_monster(), dimension_door(), do_symptoms(), esrv_update_item(), estimate_distance(), fire_bow(), generate_artifact(), init_block(), look_at_cmd(), magic_mapping_mark_recursive(), map2_add_ob(), mimic_type_apply(), monster_do_living(), monster_move(), move_player_mover(), move_teleporter(), new_exp(), new_player_cmd(), object_can_merge(), object_check_move_on(), object_update_speed(), paralyze_living(), path_to_player(), pets_attempt_follow(), pets_summon_golem(), play_sound_player_only(), player_can_view(), player_mover_type_move_on(), polymorph(), polymorph_item(), process_events(), and set_ring_bonus().
| #define FOR_ABOVE_FINISH | ( | ) |
Finishes FOR_ABOVE_PREPARE().
Definition at line 717 of file define.h.
Referenced by cfapi_object_set_property(), check_altar_sacrifice(), check_trigger(), move_hole(), object_insert_in_ob(), send_changed_object(), and update_button().
| #define FOR_ABOVE_PREPARE | ( | op_, | |
| it_ | |||
| ) |
Constructs a loop iterating over all objects above an object.
| op_ | the object to iterate over |
| it_ | a variable name that holds the inventory objects; a new variable will be declared; modifications do not affect the loop |
Definition at line 710 of file define.h.
Referenced by cfapi_object_set_property(), check_altar_sacrifice(), check_trigger(), move_hole(), object_insert_in_ob(), send_changed_object(), and update_button().
| #define FOR_BELOW_FINISH | ( | ) |
Finishes FOR_BELOW_PREPARE().
Definition at line 734 of file define.h.
Referenced by cast_consecrate(), check_item(), check_pick(), command_examine(), command_take(), do_item_conversion(), give_initial_items(), monster_apply_below(), monster_check_pickup(), move_creator(), op_on_battleground(), pray(), runpickupobject(), and shopkeeper_move().
| #define FOR_BELOW_PREPARE | ( | op_, | |
| it_ | |||
| ) |
Constructs a loop iterating over all objects below an object.
| op_ | the object to iterate over |
| it_ | a variable name that holds the inventory objects; a new variable will be declared; modifications do not affect the loop |
Definition at line 727 of file define.h.
Referenced by cast_consecrate(), check_item(), check_pick(), command_examine(), command_take(), do_item_conversion(), give_initial_items(), monster_apply_below(), monster_check_pickup(), move_creator(), op_on_battleground(), pray(), runpickupobject(), and shopkeeper_move().
| #define FOR_INV_FINISH | ( | ) |
Finishes FOR_INV_PREPARE().
Definition at line 700 of file define.h.
Referenced by add_abilities(), adj_stealchance(), alchemy(), alchemy_failure_effect(), apply_auto(), apply_death_exp_penalty(), attempt_do_alchemy(), attempt_steal(), auto_apply_fix_inventory(), become_follower(), calc_alch_danger(), cancellation(), cast_bless(), cast_change_ability(), cast_curse(), cast_detection(), cast_identify(), cfapi_object_find_archetype_inside(), check_equipment(), check_inv_recursive(), check_physically_infect(), check_slaying_inventory(), clean_object(), command_drop(), command_dropall(), command_empty(), command_rename_item(), content_recipe_value(), cure_disease(), do_auto_apply(), do_execute_event(), do_harvest(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), drop_all_unpaid(), empty_container(), esrv_add_spells(), esrv_get_ob_from_count(), esrv_move_object(), esrv_send_inventory(), esrv_update_spells(), examine(), find_arrow(), find_best_player_hth_skill(), find_better_arrow(), find_key(), find_or_create_connection_for_map(), find_random_spell_in_ob(), find_skill_by_name(), find_skill_by_number(), find_throw_ob(), find_traps(), fix_container_multipart(), fix_object(), follower_has_similar_item(), follower_remove_given_items(), generate_monster_inv(), give_initial_items(), god_examines_priest(), god_removes_curse(), hiscore_check(), hit_map(), hit_player(), hit_with_one_attacktype(), identify_altar_type_move_on(), inventory(), is_defined_recipe(), learn_skill(), lightable_type_apply(), link_player_skills(), lookup_spell_by_name(), loot_object(), mark_inventory_as_no_drop(), meditate(), monster_check_apply_all(), monster_choose_random_spell(), monster_find_throw_ob(), monster_talk_to_npc(), monster_use_range(), monster_use_scroll(), monster_use_skill(), move_ob(), numb_ob_inside(), object_copy_with_inv(), object_create_clone(), object_free(), object_insert_in_ob(), object_sum_weight(), pay_for_amount(), pay_for_item(), pay_from_container(), player_changer_type_process(), polymorph_living(), put_object_in_sack(), query_money(), remove_curse(), remove_special_prayers(), remove_trap(), save_object_in_sb(), save_throw_object(), sell_item(), send_extra_stats(), shop_mat_type_move_on(), shopkeeper_move(), show_matching_spells(), show_skills(), sign_type_move_on(), spell_consume_items(), stop_using_item(), subtract_player_exp(), transmute_item_to_flower(), transport_type_apply(), turn_one_transport(), unapply_for_ob(), use_skill(), and write_rune().
| #define FOR_INV_PREPARE | ( | op_, | |
| it_ | |||
| ) |
Constructs a loop iterating over the inventory of an object.
Example:
FOR_INV_PREPARE(op, inv) LOG(llevInfo, "%s\n", inv->name); FOR_INV_FINISH();
or
FOR_INV_PREPARE(op, inv) { LOG(llevInfo, "%s\n", inv->name); } FOR_INV_FINISH();
| op_ | the object to iterate over |
| it_ | a variable name that holds the inventory objects; a new variable will be declared; modifications do not affect the loop |
Definition at line 693 of file define.h.
Referenced by add_abilities(), adj_stealchance(), alchemy(), alchemy_failure_effect(), apply_auto(), apply_death_exp_penalty(), attempt_do_alchemy(), attempt_steal(), auto_apply_fix_inventory(), become_follower(), calc_alch_danger(), cancellation(), cast_bless(), cast_change_ability(), cast_curse(), cast_detection(), cast_identify(), cfapi_object_find_archetype_inside(), check_equipment(), check_inv_recursive(), check_physically_infect(), check_slaying_inventory(), clean_object(), command_drop(), command_dropall(), command_empty(), command_rename_item(), content_recipe_value(), cure_disease(), do_auto_apply(), do_execute_event(), do_harvest(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), drop_all_unpaid(), empty_container(), esrv_add_spells(), esrv_get_ob_from_count(), esrv_move_object(), esrv_send_inventory(), esrv_update_spells(), examine(), find_arrow(), find_best_player_hth_skill(), find_better_arrow(), find_key(), find_or_create_connection_for_map(), find_random_spell_in_ob(), find_skill_by_name(), find_skill_by_number(), find_throw_ob(), find_traps(), fix_container_multipart(), fix_object(), follower_has_similar_item(), follower_remove_given_items(), generate_monster_inv(), give_initial_items(), god_examines_priest(), god_removes_curse(), hiscore_check(), hit_map(), hit_player(), hit_with_one_attacktype(), identify_altar_type_move_on(), inventory(), is_defined_recipe(), learn_skill(), lightable_type_apply(), link_player_skills(), lookup_spell_by_name(), loot_object(), mark_inventory_as_no_drop(), meditate(), monster_check_apply_all(), monster_choose_random_spell(), monster_find_throw_ob(), monster_talk_to_npc(), monster_use_range(), monster_use_scroll(), monster_use_skill(), move_ob(), numb_ob_inside(), object_copy_with_inv(), object_create_clone(), object_free(), object_insert_in_ob(), object_sum_weight(), pay_for_amount(), pay_for_item(), pay_from_container(), player_changer_type_process(), polymorph_living(), put_object_in_sack(), query_money(), remove_curse(), remove_special_prayers(), remove_trap(), save_object_in_sb(), save_throw_object(), sell_item(), send_extra_stats(), shop_mat_type_move_on(), shopkeeper_move(), show_matching_spells(), show_skills(), sign_type_move_on(), spell_consume_items(), stop_using_item(), subtract_player_exp(), transmute_item_to_flower(), transport_type_apply(), turn_one_transport(), unapply_for_ob(), use_skill(), and write_rune().
| #define FOR_MAP_FINISH | ( | ) |
Finishes FOR_MAP_PREPARE().
Definition at line 753 of file define.h.
Referenced by add_exits_to_map(), alchemy(), apply_auto_fix(), apply_builder_floor(), attack_message(), attempt_jump(), blocked_link(), calculate_difficulty(), can_build_over(), cast_cause_disease(), cast_destruction(), cast_earth_to_dust(), cast_identify(), cast_raise_dead_spell(), cast_transfer(), check_bullet(), check_infection(), command_style_map_info(), coords_in_shop(), counterspell(), decay_objects(), delete_unique_items(), dispel_rune(), do_auto_apply(), do_exit_map(), do_harvest(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), door_in_square(), esrv_get_ob_from_count(), find_by_name(), find_closest_monster(), find_insert_pos(), find_monster_in_room_recursive(), find_target_for_friendly_spell(), find_traps(), generate_monster(), get_connection_rune(), get_msg_book(), get_wall(), hit_map(), include_map_in_map(), kill_player_not_permadeath(), link_multipart_objects(), load_objects(), map_find_by_archetype(), map_find_by_type(), monster_check_doors(), monster_check_earthwalls(), monster_communicate(), monster_find_nearest_enemy(), monster_npc_call_help(), move_aura(), move_player_attack(), move_player_mover(), nuke_map_region(), obj_count_in_map(), object_decrease_nrof(), object_increase_nrof(), object_insert_in_map(), object_merge_spell(), object_remove(), object_replace_insert_in_map(), ok_to_put_more(), peacemaker_type_process(), pets_get_enemy(), pets_move(), pets_move_golem(), pick_arrow_target(), place_exits(), probe(), process_map(), ready_map_name(), reflwall(), remove_adjacent_doors(), remove_marking_runes(), remove_monsters(), remove_trap(), retrofit_joined_wall(), roll_ob(), save_objects(), singing(), skill_attack(), stand_near_hostile(), teleport(), try_fit(), unblock_exits(), update_position(), use_alchemy(), use_oratory(), and write_rune().
| #define FOR_MAP_PREPARE | ( | map_, | |
| mx_, | |||
| my_, | |||
| it_ | |||
| ) |
Constructs a loop iterating over all objects of a map tile.
| map_ | the map to iterate over |
| mx_ | the map's x-coordinate to iterate over |
| my_ | the map's y-coordinate to iterate over |
| it_ | a variable name that holds the inventory objects; a new variable will be declared; modifications do not affect the loop |
Definition at line 746 of file define.h.
Referenced by add_exits_to_map(), alchemy(), apply_auto_fix(), apply_builder_floor(), attack_message(), attempt_jump(), blocked_link(), calculate_difficulty(), can_build_over(), cast_cause_disease(), cast_destruction(), cast_earth_to_dust(), cast_identify(), cast_raise_dead_spell(), cast_transfer(), check_bullet(), check_infection(), command_style_map_info(), coords_in_shop(), counterspell(), decay_objects(), delete_unique_items(), dispel_rune(), do_auto_apply(), do_exit_map(), do_harvest(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), door_in_square(), esrv_get_ob_from_count(), find_by_name(), find_closest_monster(), find_insert_pos(), find_monster_in_room_recursive(), find_target_for_friendly_spell(), find_traps(), generate_monster(), get_connection_rune(), get_msg_book(), get_wall(), hit_map(), include_map_in_map(), kill_player_not_permadeath(), link_multipart_objects(), load_objects(), map_find_by_archetype(), map_find_by_type(), monster_check_doors(), monster_check_earthwalls(), monster_communicate(), monster_find_nearest_enemy(), monster_npc_call_help(), move_aura(), move_player_attack(), move_player_mover(), nuke_map_region(), obj_count_in_map(), object_decrease_nrof(), object_increase_nrof(), object_insert_in_map(), object_merge_spell(), object_remove(), object_replace_insert_in_map(), ok_to_put_more(), peacemaker_type_process(), pets_get_enemy(), pets_move(), pets_move_golem(), pick_arrow_target(), place_exits(), probe(), process_map(), ready_map_name(), reflwall(), remove_adjacent_doors(), remove_marking_runes(), remove_monsters(), remove_trap(), retrofit_joined_wall(), roll_ob(), save_objects(), singing(), skill_attack(), stand_near_hostile(), teleport(), try_fit(), unblock_exits(), update_position(), use_alchemy(), use_oratory(), and write_rune().
| #define FOR_OB_AND_ABOVE_FINISH | ( | ) | FOR_OB_FINISH() |
Finishes FOR_OB_AND_ABOVE_PREPARE().
Definition at line 766 of file define.h.
Referenced by apply_builder_item(), apply_map_builder(), monster_compute_path(), object_check_move_on(), object_insert_in_map(), steal(), and town_portal_destroy_existing().
| #define FOR_OB_AND_ABOVE_PREPARE | ( | op_ | ) | FOR_OB_PREPARE(op_, above, __LINE__) |
Constructs a loop iterating over an object and all objects above it in the same pile.
| op_ | the object to start with |
Definition at line 762 of file define.h.
Referenced by apply_builder_item(), apply_map_builder(), monster_compute_path(), object_check_move_on(), object_insert_in_map(), steal(), and town_portal_destroy_existing().
| #define FOR_OB_AND_BELOW_FINISH | ( | ) | FOR_OB_FINISH() |
Finishes FOR_OB_AND_BELOW_PREPARE().
Definition at line 777 of file define.h.
Referenced by apply_by_living_below(), cast_detection(), cast_polymorph(), command_take(), count_coins(), drop(), enter_exit(), esrv_draw_look(), find_best_apply_object_match(), find_transmution_ob(), get_item_from_body_location(), hit_with_arrow(), look_at(), object_check_move_on(), object_merge(), pick_up(), remove_contents(), remove_unpaid_objects(), runapplyobject(), steal(), and unpaid_iter().
| #define FOR_OB_AND_BELOW_PREPARE | ( | op_ | ) | FOR_OB_PREPARE(op_, below, __LINE__) |
Constructs a loop iterating over an object and all objects below it in the same pile.
| op_ | the object to start with |
Definition at line 773 of file define.h.
Referenced by apply_by_living_below(), cast_detection(), cast_polymorph(), command_take(), count_coins(), drop(), enter_exit(), esrv_draw_look(), find_best_apply_object_match(), find_transmution_ob(), get_item_from_body_location(), hit_with_arrow(), look_at(), object_check_move_on(), object_merge(), pick_up(), remove_contents(), remove_unpaid_objects(), runapplyobject(), steal(), and unpaid_iter().
| #define FOR_OB_FINISH | ( | ) |
| #define FOR_OB_PREPARE | ( | op_, | |
| field_, | |||
| suffix_ | |||
| ) | FOR_OB_PREPARE2(op_, field_, suffix_) |
Constructs a loop iterating over a set of objects.
This function should not be used directly in client code.
| op_ | the object start start with |
| field_ | the field that holds the "next" pointer within op_ |
| suffix_ | a suffix for constructing unique variable names |
| #define FOR_OB_PREPARE2 | ( | op_, | |
| field_, | |||
| suffix_ | |||
| ) |
Constructs a loop iterating over a set of objects.
This function should not be used at all. Use FOR_OB_PREPARE() instead.
| op_ | the object start start with |
| field_ | the field that holds the "next" pointer within op_ |
| suffix_ | a suffix for constructing unique variable names |
| #define GENERATE_SPEED | ( | xyz | ) | ((xyz)->stats.maxsp) /* if(!RANDOM()%<speed>) */ |
Definition at line 437 of file define.h.
Referenced by generate_monster().
| #define HAS_RANDOM_ITEMS | ( | op | ) | (op->randomitems && (!QUERY_FLAG(op, FLAG_IS_A_TEMPLATE))) |
This return TRUE if object has still randomitems which could be expanded.
Definition at line 184 of file define.h.
Referenced by apply_auto(), apply_auto_fix(), auto_apply_fix_inventory(), do_auto_apply(), generate_monster_arch(), generate_monster_inv(), polymorph_living(), and rune_attack().
| #define HUGE_BUF 4096 |
Used for messages - some can be quite long.
Definition at line 37 of file define.h.
Referenced by attempt_steal(), cast_create_town_portal(), cast_item_curse_or_bless(), cast_smite_spell(), command_lock_item(), command_reset(), command_strings(), command_swap(), command_title(), describe_god(), display_motd(), dragon_ability_gain(), draw_ext_info_format(), dump_gods(), enter_exit(), enter_fixed_template_map(), enter_random_map(), enter_random_template_map(), enter_unique_map(), find_maps(), follower_remove_given_items(), get_exit_seed(), getEventFiles(), god_gives_present(), help_topics(), init_regions(), MessageLoader::load(), load_and_link_tiled_map(), load_map_header(), lock_item_cmd(), map_remove_unique_files(), mapfile_load_lowlevel(), msgfile_msg(), object_matches_string(), pick_up_object(), player_attack_door(), remove_force(), send_news(), send_rules(), show_commands(), start_animation(), transmute_item_to_flower(), and write_mark().
| #define MAX_ANIMATIONS 256 |
Definition at line 39 of file define.h.
Referenced by FaceLoader::loadAnimationBlock().
| #define MAX_BUF 256 |
Used for all kinds of things.
Definition at line 35 of file define.h.
Referenced by account_add_player_cmd(), account_char_load_from_file(), account_char_save(), account_login_cmd(), account_new_cmd(), account_password(), accounts_load(), accounts_save(), add_abilities(), add_author(), add_exit_to_item(), add_object_to_socklist(), add_shop_item(), adjust_sign_msg(), animate_weapon(), apply_anim_suffix(), apply_builder_floor(), apply_builder_item(), apply_builder_remove(), apply_builder_wall(), apply_builder_window(), apply_by_living(), apply_changes_to_player(), apply_check_apply_restrictions(), apply_check_race_restrictions(), apply_container(), apply_race_and_class(), apply_special(), apply_update_ranged_skill(), attack_hth(), attack_message(), attempt_jump(), attempt_recipe(), attempt_steal(), basic_emote(), blind_living(), book_type_apply(), can_pay(), cast_consecrate(), cast_identify(), cast_raise_dead_spell(), cast_spell(), cfapi_map_create_path(), cfapi_object_find_archetype_inside(), cfapi_object_forget_spell(), cfapi_object_set_property(), change_book(), check_login(), check_path(), checkbanned(), checkdm(), choose_cult_monster(), command_accountpasswd(), command_addexp(), command_banish(), command_cast_spell(), command_cointoss(), command_create(), command_gsay(), command_help(), command_insert_into(), command_loadplugin(), command_mark(), command_me(), command_overlay_reset(), command_party(), command_players(), command_possess(), command_remove(), command_rename_item(), command_search_items(), command_statistics(), command_title(), command_use(), content_recipe_value(), convert_newline(), converter_type_move_on(), copy_file(), create_archetype_by_object_name(), create_player_cmd(), create_singularity(), dead_player(), decode_name_password(), delete_character(), describe_god(), display_motd(), display_who_entry(), do_light(), do_skill(), do_skill_attack(), do_tell(), do_throw(), dragon_ability_gain(), dragon_eat_flesh(), drop_object(), dump_alchemy(), dump_alchemy_costs(), eat_common(), empty_container(), enter_exit(), enter_fixed_template_map(), enter_player_savebed(), enter_random_template_map(), enter_unique_map(), esrv_draw_look(), esrv_send_inventory(), esrv_update_item(), esrv_update_stats(), eventListener(), examine(), exit_type_apply(), find_key(), find_player_options(), find_throw_ob(), fire_misc_object(), fix_flesh_item(), fix_walls(), food_type_apply(), forbid_play(), get_attack_message(), get_attack_message_for_attack_type(), get_string_move_type(), give_artifact_abilities(), god_enchants_weapon(), god_examines_item(), gravestone_text(), handle_client(), help_topics(), hiscore_check(), hiscore_display(), hiscore_init(), hiscore_load(), hiscore_save(), hit_with_one_attacktype(), i18n_init(), identify_altar_type_move_on(), identify_object_with_skill(), init_book_archive(), init_clocks(), init_emergency_mappath(), init_experience(), init_listening_socket(), init_regions(), init_server(), init_startup(), init_stats(), inventory(), is_defined_recipe(), key_change_class(), key_confirm_quit(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_alchemy_attempt(), knowledge_alchemy_detail(), knowledge_god_face(), knowledge_item_can_be_used_alchemy(), knowledge_player_knows(), knowledge_read_player_data(), knowledge_write_player_data(), leave(), TreasureLoader::load(), load_overlay_map(), load_races(), load_settings(), load_table(), load_unique_objects(), TreasureLoader::loadTreasure(), look_at(), magic_wall(), make_formula_book(), make_list_like(), make_path_to_file(), map_info(), mapfile_load(), mark_item_cmd(), matches_sacrifice(), metaserver2_init(), mimic_type_apply(), monster_can_detect_enemy(), monster_communicate(), monster_find_enemy(), monster_find_throw_ob(), monster_format_say(), move_symptom(), new_connection(), new_player_cmd(), nstrtok(), object_matches_string(), output_quests(), party_form(), party_join(), party_leave(), perceive_self(), pets_summon_golem(), pick_up_object(), player_cancel_repeat(), player_lvl_adj(), player_start_repeat(), polymorph_melt(), potion_type_apply(), power_crystal_type_apply(), pray(), print_shop_string(), process_map(), put_object_in_sack(), quest_read_player_data(), quest_write_player_data(), rangetostring(), read_map_log(), ready_map_name(), recharge(), recursive_roll(), resurrect_player(), sack_can_hold(), save_life(), save_map(), save_player(), save_throw_object(), sell_item(), send_arch_info(), send_file(), send_new_char_info(), send_news(), send_rules(), send_updated_shoottype(), shop_describe(), shop_pay_unpaid_callback(), shopkeeper_move(), show_matching_spells(), show_skills(), singing(), skillscroll_type_apply(), spell_consume_items(), spellbook_type_apply(), strtoktolin(), tailor_god_spell(), transport_type_apply(), treasure_type_apply(), unapply_for_ob(), unapply_special(), use_alchemy(), use_oratory(), verify_player(), write_book_archive(), write_map_log(), write_pictures_from_real_size(), write_rune(), write_scroll(), and write_todclock().
| #define MAX_DARKNESS 5 |
Maximum map darkness, there is no practical reason to exceed this.
Definition at line 454 of file define.h.
Referenced by change_map_light(), and expand_lighted_sight().
| #define MAX_LIGHT_RADII 4 |
Max radii for 'light' object, really large values allow objects that can slow down the game.
Definition at line 450 of file define.h.
Referenced by cast_light(), draw_client_map2(), expand_lighted_sight(), make_object_glow(), map_light_on(), and player_can_see().
| #define MAX_NAME 48 |
Definition at line 41 of file define.h.
Referenced by account_check_string(), check_name(), command_addexp(), command_reply(), command_title(), get_other_player_from_name(), load_settings(), party_get_leader(), and Player_GetTitle().
| #define MAX_WEAPON_ITEM_POWER 100 |
Maximum item power an item can have.
If changed, check object::item_power for overflow issues.
Definition at line 459 of file define.h.
Referenced by god_enchants_weapon(), and improve_weapon().
| #define MIN_ACTIVE_SPEED 0.00001 |
Cut off point of when an object is put on the active list or not.
Definition at line 662 of file define.h.
Referenced by describe_monster(), fix_object(), make_object_glow(), monster_move(), move_teleporter(), object_can_merge(), object_update_speed(), pets_attempt_follow(), pets_summon_object(), and stop_item().
| #define MIN_STAT 1 |
The minimum legal value of any stat.
Definition at line 33 of file define.h.
Referenced by change_abil(), check_race_and_class(), fix_player(), init_stats(), and kill_player_not_permadeath().
| #define MOVE_BLOCK_DEFAULT MOVE_SWIM |
The normal assumption is that objects are walking/flying.
So often we don't want to block movement, but still don't want to allow all types (swimming is rather specialized) - I also expect as more movement types show up, this is likely to get updated. Basically, this is the default for spaces that allow movement - anything but swimming right now. If you really want nothing at all, then can always set move_block to 0
Definition at line 416 of file define.h.
Referenced by surround_flag3(), unblock_exits(), and wall_blocked().
| #define NAME_MAX 255 |
NAME_MAX used by random maps may not be defined on pure ansi systems.
Definition at line 30 of file define.h.
Referenced by getEventFiles().
| #define NROF_SOUNDS (23+NROFREALSPELLS) /* Number of sounds */ |
| #define OB_MOVE_BLOCK | ( | ob1, | |
| ob2 | |||
| ) | ob_move_block(ob1, ob2) |
Definition at line 425 of file define.h.
Referenced by blocked_link(), roll_ob(), and try_fit().
| #define OB_TYPE_MOVE_BLOCK | ( | ob1, | |
| type | |||
| ) | ((type != 0) && (ob1->move_type&type) == ob1->move_type) |
Basic macro to see if if ob1 can not move onto a space based on the 'type' move_block parameter Add check - if type is 0, don't stop anything from moving onto it.
Definition at line 433 of file define.h.
Referenced by attempt_jump(), blocked_link(), cast_create_obj(), cast_light(), check_bullet(), common_process_projectile(), dimension_door(), fire_arch_from_position(), fire_bolt(), forklightning(), move_aura(), move_ball_spell(), move_bolt(), move_bullet(), ob_blocked(), ok_to_put_more(), path_to_player(), pets_move(), skill_attack(), stand_near_hostile(), steal(), and teleport().
| #define PREFER_HIGH 1 |
Definition at line 584 of file define.h.
Referenced by alchemy_failure_effect(), attack_ob_simple(), cast_detection(), cast_heal(), cast_spell(), deathstrike_living(), did_make_save(), fire_swarm(), god_intervention(), hit_with_drain(), hit_with_one_attacktype(), infect_object(), mood_change(), pets_summon_object(), player_lvl_adj(), push_ob(), recharge(), singing(), trap_see(), use_oratory(), and write_scroll().
| #define PREFER_LOW 0 |
Definition at line 585 of file define.h.
Referenced by alchemy_failure_effect(), attack_ob_simple(), attempt_do_alchemy(), attempt_hide(), attempt_pick_lock(), attempt_steal(), become_follower(), cast_smite_spell(), cast_spell(), charge_mana_effect(), cure_disease(), do_hidden_move(), do_symptoms(), flee_player(), gate_type_process(), god_examines_priest(), hit_with_one_attacktype(), identify_object_with_skill(), kill_player_not_permadeath(), learn_skill(), mood_change(), pick_arrow_target(), potion_type_apply(), pray_at_altar(), roll_ob(), scroll_failure(), slow_living(), spellbook_type_apply(), trap_disarm(), try_leave_cult(), use_oratory(), and write_scroll().
| #define QUERY_FLAG | ( | xyz, | |
| p | |||
| ) | query_flag(xyz, p) |
Definition at line 386 of file define.h.
Referenced by abort_attack(), action_makes_visible(), add_abilities(), add_labels(), add_object_to_socklist(), add_one_item(), adj_attackroll(), adj_stealchance(), adjust_skill_tool(), alchemy(), alchemy_failure_effect(), alchemy_object(), animate_object(), animate_weapon(), annotate_ob(), apply_auto(), apply_auto_fix(), apply_builder_floor(), apply_builder_item(), apply_builder_remove(), apply_by_living(), apply_by_living_below(), apply_can_apply_object(), apply_changes_to_player(), apply_check_race_restrictions(), apply_cmd(), apply_container(), apply_manual(), apply_map_builder(), apply_sign(), apply_special(), armour_improver_type_apply(), attack_hth(), attack_melee_weapon(), attack_ob_simple(), attempt_do_alchemy(), attempt_jump(), attempt_steal(), auto_apply_fix_inventory(), become_follower(), blocked_link(), book_type_apply(), calc_alch_danger(), calc_item_enhancement(), calc_skill_exp(), calculate_difficulty(), can_build_over(), cancellation(), cast_cause_disease(), cast_change_ability(), cast_cone(), cast_consecrate(), cast_destruction(), cast_detection(), cast_dust(), cast_earth_to_dust(), cast_invisible(), cast_item_curse_or_bless(), cast_polymorph(), cast_smite_spell(), cast_spell(), cast_transfer(), cfapi_object_delete(), cfapi_object_drop(), cfapi_object_get_property(), cfapi_object_insert(), cfapi_object_remove(), change_abil(), change_exp(), change_object(), check_altar_sacrifice(), check_bullet(), check_generators(), check_heal_and_mana(), check_inv_recursive(), check_item(), check_login(), check_pick(), check_probe(), check_spell_knockback(), clean_friendly_list(), clean_object(), command_afk(), command_body(), command_create(), command_delete(), command_drop(), command_dropall(), command_dump(), command_find(), command_follow(), command_free(), command_help(), command_insert_into(), command_kick2(), command_lock_item(), command_mon_aggr(), command_quest(), command_remove(), command_reply(), command_wizcast(), command_wizpass(), common_pre_ob_move_on(), common_process_projectile(), common_projectile_move_on(), common_trap_type_move_on(), confuse_living(), container_describe(), converter_type_apply(), count_players(), counterspell(), create_player_cmd(), cure_disease(), current_map_info(), deathstrike_living(), decay_objects(), deep_swamp_type_process(), delete_unique_items(), describe_item(), describe_monster(), destroy_object(), detect_curse_on_item(), detect_magic_on_item(), determine_god(), do_auto_apply(), do_execute_event(), do_harvest(), do_item_conversion(), do_learn_spell(), do_monster(), do_mood_floor(), do_single_item(), do_skill(), do_skill_attack(), do_skill_detect_curse(), do_symptoms(), do_tell(), do_throw(), do_turn(), do_wizard_dm(), dragon_ability_gain(), draw_ext_info(), drop(), drop_all_unpaid(), drop_object(), dump_abilities(), dump_gods(), eat_special_food(), empty_container(), enter_exit(), enter_map(), esrv_del_item(), esrv_draw_look(), esrv_move_object(), esrv_update_item(), esrv_update_stats(), examine(), examine_autoidentify(), examine_cmd(), examine_monster(), expand_lighted_sight(), face_player(), find_applied_skill_by_name(), find_arrow(), find_best_apply_object_match(), find_best_player_hth_skill(), find_better_arrow(), find_closest_monster(), find_insert_pos(), find_key(), find_monster_in_room_recursive(), find_player_options(), find_skill_by_name(), find_skill_by_number(), find_target_for_friendly_spell(), find_throw_ob(), find_traps(), finish_races(), fire_arch_from_position(), fire_bolt(), fire_bow(), fix_flesh_item(), fix_generated_item(), fix_object(), fix_stopped_item(), fix_summon_pet(), food_type_apply(), free_all_objects(), free_dialog_information(), free_no_drop(), free_player(), gate_type_process(), generate_monster(), generate_monster_arch(), generate_monster_inv(), get_attack_mode(), get_dialog_message(), get_item_from_body_location(), get_nearest_player(), get_ob_diff(), get_who_escape_code_value(), give_initial_items(), god_examines_priest(), god_removes_curse(), handle_newcs_player(), hide(), hiscore_check(), hit_map(), hit_player(), hit_with_drain(), hit_with_one_attacktype(), identify_object_with_skill(), improve_armour(), improve_weapon(), include_map_in_map(), infect_object(), inventory(), is_enemy(), is_identified(), is_magical(), IS_PLAYER(), is_road(), is_special_equipment(), is_susceptible_to_disease(), is_true_undead(), key_confirm_quit(), kill_object(), kill_player_permadeath(), knowledge_alchemy_attempt(), lamp_type_apply(), lamp_type_describe(), learn_skill(), leave(), lightable_type_apply(), list_players(), ArchetypeLoader::load(), load_objects(), lock_and_hide_doors(), look_at(), loot_object(), magic_wall(), make_item_from_recipe(), make_throw_ob(), makes_invisible_to(), map2_add_ob(), map_find_by_flag(), map_info(), matcher_name(), matches_sacrifice(), meditate(), monster_apply_below(), monster_can_detect_enemy(), monster_can_hit(), monster_can_pick(), monster_can_see_enemy(), monster_cast_spell(), monster_check_apply(), monster_check_enemy(), monster_check_wakeup(), monster_do_living(), monster_find_enemy(), monster_find_throw_ob(), monster_move(), monster_move_no_enemy(), monster_move_randomly(), monster_npc_call_help(), monster_use_bow(), monster_use_range(), monster_use_scroll(), monster_use_skill(), mood_change(), move_aura(), move_bolt(), move_bullet(), move_cone(), move_creator(), move_disease(), move_ob(), move_player(), move_player_attack(), move_player_mover(), move_symptom(), move_teleporter(), new_exp(), nuke_map_region(), object_can_merge(), object_can_pick(), object_check_move_on(), object_clear(), object_copy_no_speed(), object_decrease_nrof(), object_find_by_flag(), object_find_by_flag_applied(), object_find_by_type_applied(), object_find_by_type_without_flags(), object_free(), object_free_all_data(), object_get_owner(), object_get_owner_const(), object_give_identified_properties(), object_increase_nrof(), object_insert_in_map(), object_insert_in_ob(), object_matches_pickup_mode(), object_matches_string(), object_new(), object_remove(), object_split(), object_teleport(), object_update(), object_update_speed(), object_update_turn_face(), ok_to_put_more(), op_on_battleground(), paralyze_living(), parse_dialog_information(), pay_for_amount(), pay_for_item(), peacemaker_type_process(), pets_attempt_follow(), pets_follow_owner(), pets_get_enemy(), pets_move(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pets_terminate(), pick_arrow_target(), pick_up(), pick_up_object(), place_fountain_with_specials(), play_again(), player_can_find(), players_on_map(), poison_living(), poisoning_type_process(), polymorph(), polymorph_item(), polymorph_living(), potion_type_apply(), price_base(), print_monsters(), probe(), process_events(), process_map(), process_object(), process_players1(), push_ob(), put_in_icecube(), put_object_in_sack(), query_base_name(), query_flags(), query_money(), query_name(), query_short_name(), quest_info(), rangetostring(), ready_map_name(), recharge(), reflwall(), remove_button_link(), remove_curse(), remove_monsters(), remove_special_prayers(), remove_trap(), remove_unpaid_objects(), ring_desc(), roll_ob(), sack_can_hold(), save_life(), save_object_in_sb(), save_objects(), save_player(), save_throw_object(), scroll_type_apply(), send_extra_stats(), shop_inventory_type_apply(), shop_mat_type_move_on(), shopkeeper_move(), singing(), skill_attack(), spell_effect_type_move_on(), spell_find_dir(), spellbook_type_apply(), spring_trap(), stand_near_hostile(), steal(), stop_using_item(), swap_map(), thrown_item_effect(), time_info(), transmute_item_to_flower(), treasure_type_apply(), trigger_connected(), try_fit(), turn_transport(), unapply_for_ob(), unpaid_iter(), update_los(), update_position(), update_priest_flag(), use_alchemy(), use_oratory(), use_skill(), weapon_improver_type_apply(), worship_forbids_use(), write_on_item(), and write_scroll().
| #define RANDOM | ( | ) | cf_random() |
Definition at line 667 of file define.h.
Referenced by add_author(), add_npc_to_point(), add_npc_to_random_map(), add_npc_to_zone(), add_npcs_to_map(), alchemy_failure_effect(), artifact_describe(), artifact_msg(), bottom_centered_onion(), bottom_right_centered_onion(), centered_onion(), chance(), change_book(), change_luck(), citylife_globalEventListener(), create_one_treasure(), crypt_string(), die_roll(), do_single_item(), doorify_layout(), dragon_eat_flesh(), drain_stat(), eventListener(), fill_maze_full(), fill_maze_sparse(), find_doors_in_room_recursive(), find_free_point(), find_in_layout(), find_monster_in_room_recursive(), find_random_spell_in_ob(), find_spot_for_submap(), find_spot_in_room(), find_spot_in_room_recursive(), find_style(), find_transmution_ob(), fire_arch_from_position(), fix_generated_item(), flee_player(), generate_artifact(), generate_random_map(), get_npc(), get_rand_god(), get_random_mon(), get_random_recipe(), get_random_recipelist(), get_randomized_dir(), god_info_msg(), handle_spell_confusion(), hit_player(), keyplace(), kill_player_not_permadeath(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_summary(), layoutgen(), lock_and_hide_doors(), loot_object(), magic_from_difficulty(), make_doors(), make_formula_book(), make_snake_layout(), make_square_spiral_layout(), map_gen_onion(), map_gen_spiral(), monster_can_detect_enemy(), monster_can_hit(), monster_choose_random_spell(), monster_circ1_move(), monster_circ2_move(), monster_compute_path(), monster_do_living(), monster_move(), monster_move_randomly(), monster_rand_move(), new_text_name(), object_copy_no_speed(), object_find_free_spot(), object_find_multi_free_spot_around(), object_find_multi_free_spot_within_radius(), object_free(), permute(), pets_move(), pets_summon_object(), pick_random_object(), place_chest(), place_exits(), place_fountain_with_specials(), place_monsters(), place_special_exit(), place_specials_in_map(), place_treasure(), play_sound_map(), pop_wall_point(), put_decor(), Messages::random(), random_roll(), random_roll64(), resurrect_player(), rn2(), rndm(), roguelike_layout_gen(), roguelike_link_rooms(), roguelike_make_rooms(), roguelike_place_room(), roll_stat(), roomify_layout(), save_throw_object(), set_abs_magic(), set_ring_bonus(), spellpath_msg(), swap_random_stats(), tailor_readable_ob(), and teleport().
| #define SET_FLAG | ( | xyz, | |
| p | |||
| ) | set_flag(xyz, p) |
Definition at line 384 of file define.h.
Referenced by add_abilities(), add_button_link(), add_object_to_socklist(), add_one_item(), add_shop_item(), alchemy_failure_effect(), animate_object(), animate_weapon(), apply_auto(), apply_builder_floor(), apply_builder_item(), apply_changes_to_player(), apply_container(), apply_map_builder(), apply_special(), artifact_describe(), attempt_steal(), become_follower(), blind_living(), book_type_apply(), cast_bless(), cast_change_ability(), cast_consecrate(), cast_create_missile(), cast_curse(), cast_detection(), cast_item_curse_or_bless(), cfapi_object_set_property(), change_abil(), change_luck(), change_object(), check_login(), command_abil(), command_addexp(), command_afk(), command_create(), command_drop(), command_dropall(), command_lock_item(), command_mon_aggr(), command_patch(), command_possess(), command_take(), command_wizcast(), command_wizpass(), confuse_living(), create_aura(), create_singularity(), detect_curse_on_item(), detect_magic_on_item(), do_auto_apply(), do_item_conversion(), do_learn_spell(), do_mood_floor(), do_skill(), do_symptoms(), do_throw(), do_turn(), do_wizard_dm(), dragon_ability_gain(), drain_specific_stat(), eat_special_food(), esrv_new_player(), esrv_send_item(), eventListener(), examine_monster(), expand_objects(), fire_misc_object(), fix_flesh_item(), fix_generated_item(), fix_object(), fix_summon_pet(), food_type_apply(), gate_type_process(), get_archetype_struct(), get_jail_exit(), get_npc(), give_initial_items(), hit_player(), identify(), identify_object_with_skill(), init_objects(), key_roll_stat(), kill_player_not_permadeath(), kill_player_permadeath(), learn_skill(), ArchetypeLoader::load(), load_objects(), lock_item_cmd(), magic_wall(), make_item_from_recipe(), make_object_glow(), mark_inventory_as_no_drop(), mimic_type_apply(), monster_check_apply(), mood_change(), move_aura(), object_clear(), object_copy_no_speed(), object_free(), object_give_identified_properties(), object_insert_in_ob(), object_new(), object_remove(), object_set_cheat(), object_set_flag_inv(), paralyze_living(), parse_dialog_information(), pay_for_item(), peacemaker_type_process(), pets_summon_golem(), pets_summon_object(), pick_up_object(), place_fountain_with_specials(), poison_living(), polymorph_living(), potion_type_apply(), put_treasure(), recharge(), save_player(), save_throw_object(), scare_creature(), sell_item(), set_magic(), set_ring_bonus(), shop_mat_type_move_on(), shop_pay_unpaid_callback(), singing(), slow_living_by(), spring_trap(), swap_random_stats(), transmute_item_to_flower(), update_priest_flag(), and use_oratory().
| #define SIZEOFFREE 49 |
Definition at line 155 of file define.h.
Referenced by cfapi_object_insert(), do_harvest(), enter_map(), find_closest_monster(), get_search_arr(), mimic_type_apply(), monster_find_nearest_enemy(), object_find_first_free_spot(), object_find_free_spot(), object_free(), pets_follow_owner(), pets_get_enemy(), pets_summon_object(), singing(), spell_find_dir(), and transfer_ob().
| #define SIZEOFFREE1 8 |
Definition at line 153 of file define.h.
Referenced by change_object(), enter_map(), find_enclosed_spot(), get_search_arr(), and pets_summon_golem().
| #define SIZEOFFREE2 24 |
Definition at line 154 of file define.h.
Referenced by enter_map(), get_search_arr(), and monster_communicate().
| #define SMOOTH_FACE_NAME "default_smoothed.111" |
Definition at line 578 of file define.h.
Referenced by Faces::Faces().
| #define SRANDOM | ( | seed | ) | cf_srandom(seed) |
Definition at line 668 of file define.h.
Referenced by generate_random_map(), init(), and test_layout().
| #define VERY_BIG_BUF 1024 |
Definition at line 36 of file define.h.
Referenced by account_char_load_from_file(), attack_message(), command_rename_item(), examine(), and kill_object().
| #define WEAPON_SPEED | ( | xyz | ) | (xyz)->last_sp |
Definition at line 468 of file define.h.
Referenced by describe_item(), and fix_object().
| #define WEIGHT | ( | op | ) | (op->nrof ? op->weight : op->weight+op->carrying) |
Returns the weight of the given object.
Note: it does not take the number of items (nrof) into account.
Definition at line 674 of file define.h.
Referenced by add_object_to_socklist(), esrv_update_item(), and send_updates().
| typedef unsigned char MoveType |
| enum fatal_error |
| uint32_t cf_random | ( | void | ) |
| void cf_srandom | ( | unsigned long | seed | ) |
Definition at line 9 of file cf_random.cpp.
References generator.
|
static |
Definition at line 461 of file define.h.
Referenced by cast_heal(), eat_common(), hit_with_one_attacktype(), kill_player(), kill_player_permadeath(), and save_life().