include/attack.h File Reference

Go to the source code of this file.

Defines

#define LAST_PROTECTION   (ATNR_CONFUSION + 1)
#define AT_PHYSICAL   0x00000001
#define AT_MAGIC   0x00000002
#define AT_DRAIN   0x00000080
#define AT_POISON   0x00000400
#define AT_INTERNAL   0x00800000

Enumerations

enum  _attacks {
  ATNR_IMPACT, ATNR_SLASH, ATNR_CLEAVE, ATNR_PIERCE,
  ATNR_WEAPON_MAGIC, ATNR_FIRE, ATNR_COLD, ATNR_ELECTRICITY,
  ATNR_POISON, ATNR_ACID, ATNR_MAGIC, ATNR_MIND,
  ATNR_BLIND, ATNR_PARALYZE, ATNR_FORCE, ATNR_GODPOWER,
  ATNR_CHAOS, ATNR_DRAIN, ATNR_SLOW, ATNR_CONFUSION,
  ATNR_INTERNAL, NROFATTACKS
}

Variables

EXTERN char * attack_save [NROFATTACKS]
EXTERN char * attack_name [NROFATTACKS]

Detailed Description

Attack and defense system macros, defines, etc.

Definition in file attack.h.


Define Documentation

#define LAST_PROTECTION   (ATNR_CONFUSION + 1)

Last valid protection, used for treasure generation.

Definition at line 92 of file attack.h.


Enumeration Type Documentation

enum _attacks

The attack IDs.

Enumerator:
ATNR_IMPACT 

Impact.

ATNR_SLASH 

Slash.

ATNR_CLEAVE 

Cleave.

ATNR_PIERCE 

Pierce.

ATNR_WEAPON_MAGIC 

Weapon magic. Common for spells like magic bullet.

ATNR_FIRE 

Fire.

ATNR_COLD 

Cold.

ATNR_ELECTRICITY 

Electricity.

ATNR_POISON 

Poison,

ATNR_ACID 

Acid.

ATNR_MAGIC 

Magic.

ATNR_MIND 

Mind.

ATNR_BLIND 

Blind.

ATNR_PARALYZE 

Paralyze. Affected object will be rooted to the spot.

ATNR_FORCE 

Force.

ATNR_GODPOWER 

Godpower.

ATNR_CHAOS 

Chaos.

ATNR_DRAIN 

Drain.

ATNR_SLOW 

Slow.

ATNR_CONFUSION 

Confusion. Affected object will move in random directions until the effect wears off.

ATNR_INTERNAL 

Used for internal calculations.

NROFATTACKS 

Number of the attacks.

Definition at line 35 of file attack.h.


Variable Documentation

EXTERN char* attack_name[NROFATTACKS]
Initial value:
{
    "impact",   "slash", "cleave",      "pierce",    "weapon magic",
    "fire",     "cold",  "electricity", "poison",    "acid",
    "magic",    "mind",  "blind",       "paralyze",  "force",
    "godpower", "chaos", "drain",       "slow",      "confusion",
    "internal"
}

Short description of names of the attack types.

Definition at line 131 of file attack.h.

EXTERN char* attack_save[NROFATTACKS]
Initial value:
{
    "impact",   "slash", "cleave",      "pierce",    "weaponmagic",
    "fire",     "cold",  "electricity", "poison",    "acid",
    "magic",    "mind",  "blind",       "paralyze",  "force",
    "godpower", "chaos", "drain",       "slow",      "confusion",
    "internal"
}

Names of attack types to use when saving them to file.

Warning:
Cannot contain spaces. Use underscores instead.

Definition at line 121 of file attack.h.


Generated by  doxygen 1.6.2