ScummVM API documentation
Ultima::Ultima4::Weapon Class Reference

Public Types

enum  Flags {
  WEAP_LOSE = 0x0001, WEAP_LOSEWHENRANGED = 0x0002, WEAP_CHOOSEDISTANCE = 0x0004, WEAP_ALWAYSHITS = 0x0008,
  WEAP_MAGIC = 0x0010, WEAP_ATTACKTHROUGHOBJECTS = 0x0040, WEAP_ABSOLUTERANGE = 0x0080, WEAP_RETURNS = 0x0100,
  WEAP_DONTSHOWTRAVEL = 0x0200
}
 

Public Member Functions

WeaponType getType () const
 
const Common::StringgetName () const
 
const Common::StringgetAbbrev () const
 
bool canReady (ClassType klass) const
 
int getRange () const
 
int getDamage () const
 
const Common::StringgetHitTile () const
 
const Common::StringgetMissTile () const
 
const Common::StringleavesTile () const
 
unsigned short getFlags () const
 
bool loseWhenUsed () const
 
bool loseWhenRanged () const
 
bool canChooseDistance () const
 
bool alwaysHits () const
 
bool isMagic () const
 
bool canAttackThroughObjects () const
 
bool rangeAbsolute () const
 
bool returns () const
 
bool showTravel () const
 

Member Enumeration Documentation

◆ Flags

< Flags affecting weapon's behavior.

See also
Weapon::flags
Enumerator
WEAP_LOSE 

lost when used

WEAP_LOSEWHENRANGED 

lost when used for ranged attack

WEAP_CHOOSEDISTANCE 

allows player to choose attack distance

WEAP_ALWAYSHITS 

always hits it's target

WEAP_MAGIC 

is magical

WEAP_ATTACKTHROUGHOBJECTS 

can attack through solid objects

WEAP_ABSOLUTERANGE 

range is absolute (only works at specific distance)

WEAP_RETURNS 

returns to user after used/thrown

WEAP_DONTSHOWTRAVEL 

do not show animations when attacking


The documentation for this class was generated from the following file: