ScummVM API documentation
Ultima::Ultima1::Widgets::AttackEffect Class Reference

#include <attack_effect.h>

Inheritance diagram for Ultima::Ultima1::Widgets::AttackEffect:
Ultima::Shared::Maps::MapWidget Ultima::Shared::MessageTarget Ultima::Shared::BaseObject Ultima::Ultima1::Widgets::PhysicalAttackEffect Ultima::Ultima1::Widgets::SpellAttackEffect

Public Member Functions

 AttackEffect (Shared::Game *game, Shared::Maps::MapBase *map)
 
void synchronize (Common::Serializer &s) override
 
uint getTileNum () const override
 
- Public Member Functions inherited from Ultima::Shared::Maps::MapWidget
 MapWidget (Game *game, MapBase *map)
 
 MapWidget (Game *game, MapBase *map, const Point &pt, Direction dir=DIR_NONE)
 
 MapWidget (Game *game, MapBase *map, const Common::String &name, const Point &pt, Direction dir=DIR_NONE)
 
 ~MapWidget () override
 
virtual const char * getClassName () const
 
void addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false)
 
virtual bool isBlocking () const
 
virtual void update (bool isPreUpdate)
 
virtual CanMove canMoveTo (const Point &destPos)
 
virtual void moveTo (const Point &destPos, Direction dir=DIR_NONE)
 
- Public Member Functions inherited from Ultima::Shared::BaseObject
virtual ::Ultima::Shared::ClassDef getType () const
 
bool isInstanceOf (const ClassDef &classDef) const
 

Protected Member Functions

 AttackEffect (Shared::Game *game, Shared::Maps::MapBase *map, uint tileId)
 
- Protected Member Functions inherited from Ultima::Shared::MessageTarget
virtual const Ultima::Shared::MSGMAPgetMessageMap () const
 

Protected Attributes

uint _tileId
 
Point _delta
 
uint _remainingDistance
 
uint _agility
 
uint _damage
 
- Protected Attributes inherited from Ultima::Shared::Maps::MapWidget
Game_game
 
MapBase_map
 

Additional Inherited Members

- Public Types inherited from Ultima::Shared::Maps::MapWidget
enum  CanMove { UNSET = 0, YES = 1, NO = 2 }
 
- Static Public Member Functions inherited from Ultima::Shared::Maps::MapWidget
static Direction directionFromKey (Common::KeyCode keycode)
 
- Static Public Member Functions inherited from Ultima::Shared::BaseObject
::Ultima::Shared::ClassDef type ()
 
- Public Attributes inherited from Ultima::Shared::Maps::MapWidget
Point _position
 
Direction _direction
 
Common::String _name
 
 CLASSDEF
 
- Public Attributes inherited from Ultima::Shared::MessageTarget
 CLASSDEF
 
- Static Protected Member Functions inherited from Ultima::Shared::MessageTarget
static const Ultima::Shared::MSGMAPgetThisMessageMap ()
 

Detailed Description

Common base class for both physical and spell attack effects

Constructor & Destructor Documentation

◆ AttackEffect() [1/2]

Ultima::Ultima1::Widgets::AttackEffect::AttackEffect ( Shared::Game game,
Shared::Maps::MapBase map,
uint  tileId 
)
inlineprotected

Constructor

◆ AttackEffect() [2/2]

Ultima::Ultima1::Widgets::AttackEffect::AttackEffect ( Shared::Game game,
Shared::Maps::MapBase map 
)
inline

Constructor

Member Function Documentation

◆ synchronize()

void Ultima::Ultima1::Widgets::AttackEffect::synchronize ( Common::Serializer s)
overridevirtual

Handles loading and saving the widget's data

Reimplemented from Ultima::Shared::Maps::MapWidget.

◆ getTileNum()

uint Ultima::Ultima1::Widgets::AttackEffect::getTileNum ( ) const
inlineoverridevirtual

Get the tile for the transport method

Reimplemented from Ultima::Shared::Maps::MapWidget.


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