ScummVM API documentation
Ultima::Ultima8::DamageInfo Class Reference

#include <damage_info.h>

Public Member Functions

 DamageInfo (uint8 data[6])
 
bool applyToItem (Item *item, uint16 points) const
 apply this damage info to the given item. Returns true if the item was destroyed in the process.
 
bool frameDataIsAbsolute () const
 
bool replaceItem () const
 
bool explodeDestroysItem () const
 
bool explodeWithDamage () const
 
bool takesDamage () const
 
uint8 damagePoints () const
 

Protected Member Functions

bool explode () const
 
int explosionType () const
 
uint16 getReplacementShape () const
 
uint16 getReplacementFrame () const
 

Protected Attributes

uint8 _flags
 
uint8 _sound
 
uint8 _data [3]
 
uint8 _damagePoints
 

Detailed Description

The damage.dat flex contains data about each shape and how it should be damaged


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