#include <actorsprite.h>
|
| enum | Type {
UNKNOWN
, PLAYER
, NPC
, MONSTER
,
FLOOR_ITEM
, PORTAL
} |
| |
| enum | TargetCursorSize { TC_SMALL = 0
, TC_MEDIUM
, TC_LARGE
, NUM_TC
} |
| |
| enum | TargetCursorType { TCT_NONE = -1
, TCT_NORMAL = 0
, TCT_IN_RANGE
, NUM_TCT
} |
| |
|
| static void | initTargetCursor () |
| | Load the target cursors into memory.
|
| |
| static void | cleanupTargetCursors () |
| | Remove the target cursors from memory.
|
| |
| static void | loadTargetCursor (const std::string &filename, int width, int height, int type, int size) |
| | Helper function for loading target cursors.
|
| |
Definition at line 30 of file actorsprite.h.
◆ TargetCursorSize
| Enumerator |
|---|
| TC_SMALL | |
| TC_MEDIUM | |
| TC_LARGE | |
| NUM_TC | |
Definition at line 43 of file actorsprite.h.
◆ TargetCursorType
| Enumerator |
|---|
| TCT_NONE | |
| TCT_NORMAL | |
| TCT_IN_RANGE | |
| NUM_TCT | |
Definition at line 51 of file actorsprite.h.
◆ Type
| Enumerator |
|---|
| UNKNOWN | |
| PLAYER | |
| NPC | |
| MONSTER | |
| FLOOR_ITEM | |
| PORTAL | |
Definition at line 33 of file actorsprite.h.
◆ ActorSprite()
| ActorSprite::ActorSprite |
( |
int |
id | ) |
|
◆ ~ActorSprite()
| ActorSprite::~ActorSprite |
( |
| ) |
|
|
override |
◆ cleanupTargetCursors()
| void ActorSprite::cleanupTargetCursors |
( |
| ) |
|
|
staticprivate |
◆ controlParticle()
| void ActorSprite::controlParticle |
( |
Particle * |
particle | ) |
|
◆ draw()
| bool ActorSprite::draw |
( |
Graphics * |
graphics, |
|
|
int |
offsetX, |
|
|
int |
offsetY |
|
) |
| const |
|
overridevirtual |
Draws the Actor to the given graphics context.
Note: this function could be simplified if the graphics context would support setting a translation offset. It already does this partly with the clipping rectangle support.
Implements Actor.
Reimplemented in FloorItem.
Definition at line 64 of file actorsprite.cpp.
◆ drawSpriteAt()
| bool ActorSprite::drawSpriteAt |
( |
Graphics * |
graphics, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| const |
◆ getAlpha()
| float ActorSprite::getAlpha |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the current alpha value used to draw the actor.
Implements Actor.
Definition at line 111 of file actorsprite.h.
◆ getBlockType()
Gets the way the object blocks pathfinding for other objects.
Reimplemented in Being.
Definition at line 86 of file actorsprite.h.
◆ getDrawOrder()
| int ActorSprite::getDrawOrder |
( |
| ) |
const |
|
overridevirtual |
Returns the pixel Y coordinate that the actor should be drawn at.
Reimplemented from Actor.
Definition at line 59 of file actorsprite.cpp.
◆ getHeight()
| int ActorSprite::getHeight |
( |
| ) |
const |
|
inline |
◆ getId()
| int ActorSprite::getId |
( |
| ) |
const |
|
inline |
◆ getTargetCursorSize()
Returns the required size of a target cursor for this being.
Reimplemented in Being.
Definition at line 97 of file actorsprite.h.
◆ getType()
| virtual Type ActorSprite::getType |
( |
| ) |
const |
|
inlinevirtual |
◆ getWidth()
| int ActorSprite::getWidth |
( |
| ) |
const |
|
inline |
◆ initTargetCursor()
| void ActorSprite::initTargetCursor |
( |
| ) |
|
|
staticprivate |
◆ load()
| void ActorSprite::load |
( |
| ) |
|
|
static |
◆ loadTargetCursor()
| void ActorSprite::loadTargetCursor |
( |
const std::string & |
filename, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
type, |
|
|
int |
size |
|
) |
| |
|
staticprivate |
Helper function for loading target cursors.
Definition at line 206 of file actorsprite.cpp.
◆ logic()
| void ActorSprite::logic |
( |
| ) |
|
|
virtual |
◆ setAlpha()
| void ActorSprite::setAlpha |
( |
float |
alpha | ) |
|
|
inlineoverridevirtual |
Sets the alpha value used to draw the actor.
Implements Actor.
Definition at line 110 of file actorsprite.h.
◆ setId()
| void ActorSprite::setId |
( |
int |
id | ) |
|
|
inline |
◆ setMap()
| void ActorSprite::setMap |
( |
Map * |
map | ) |
|
|
overridevirtual |
◆ setTargetType()
◆ setupSpriteDisplay()
| void ActorSprite::setupSpriteDisplay |
( |
const SpriteDisplay & |
display, |
|
|
bool |
forceDisplay = true |
|
) |
| |
|
protected |
◆ unload()
| void ActorSprite::unload |
( |
| ) |
|
|
static |
◆ untarget()
| void ActorSprite::untarget |
( |
| ) |
|
|
inline |
◆ loaded
| bool ActorSprite::loaded = false |
|
staticprivate |
◆ mChildParticleEffects
◆ mId
◆ mSprites
◆ mUsedTargetCursor
◆ targetCursor
◆ targetCursorImages
The documentation for this class was generated from the following files: