OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SpriteObject Struct Reference

#include <SpriteObject.h>

Public Member Functions

bool attachedToActor () const
 
int Create (int yaw, int pitch, int a4, int a5)
 
bool applyShrinkRayAoe ()
 
void explosionTraps ()
 
Duration GetLifetime ()
 
SpriteFramegetSpriteFrame ()
 
bool IsUnpickable ()
 
bool HasSprite ()
 
Color GetParticleTrailColor ()
 
void spellSpriteStop ()
 

Static Public Member Functions

static void updateObjectBLV (unsigned int uLayingItemID)
 
static void updateObjectODM (unsigned int uLayingItemID)
 
static void OnInteraction (unsigned int uLayingItemID)
 
static bool dropItemAt (SpriteId spriteType, Vec3f pos, int speed, int count=1, bool randomRotate=false, SpriteAttributes attributes=0, ItemGen *item=nullptr)
 
static void createSplashObject (Vec3f pos)
 
static void InitializeSpriteObjects ()
 

Public Attributes

SpriteId uType = SPRITE_NULL
 
uint16_t uObjectDescID = 0
 
Vec3f vPosition
 
Vec3f vVelocity
 
uint16_t uFacing = 0
 
uint16_t uSoundID = 0
 
SpriteAttributes uAttributes = 0
 
int uSectorID = 0
 
Duration timeSinceCreated
 
Duration tempLifetime
 
int16_t field_22_glow_radius_multiplier = 1
 
ItemGen containing_item
 
SpellId uSpellID = SPELL_NONE
 
int spell_level = 0
 
CharacterSkillMastery spell_skill = CHARACTER_SKILL_MASTERY_NONE
 
int field_54 = 0
 
Pid spell_caster_pid
 
Pid spell_target_pid
 
char field_60_distance_related_prolly_lod = 0
 
ActorAbility spellCasterAbility = ABILITY_ATTACK1
 
Vec3f initialPosition
 
Duration _lastParticleTime
 
Duration _ticksPerParticle = 2_ticks
 

Member Function Documentation

◆ applyShrinkRayAoe()

bool SpriteObject::applyShrinkRayAoe ( )
Original binary offset:
0x46BEF1

◆ attachedToActor()

bool SpriteObject::attachedToActor ( ) const
inline

◆ Create()

int SpriteObject::Create ( int  yaw,
int  pitch,
int  a4,
int  a5 
)

◆ createSplashObject()

void SpriteObject::createSplashObject ( Vec3f  pos)
static

◆ dropItemAt()

bool SpriteObject::dropItemAt ( SpriteId  spriteType,
Vec3f  pos,
int  speed,
int  count = 1,
bool  randomRotate = false,
SpriteAttributes  attributes = 0,
ItemGen item = nullptr 
)
static

Create sprite(s).

Parameters
spriteTypeType of sprite to drop.
posPosition of sprite.
speedSpeed of sprite.
countNumber of sprites to drop.
randomRotateRandomize direction vector of sprite (if false drop will be vertical).
attributesSprite attributes.
itemContaining item of sprite (may be null).
Original binary offset:
0x42F7EB

◆ explosionTraps()

void SpriteObject::explosionTraps ( )

◆ GetLifetime()

Duration SpriteObject::GetLifetime ( )

◆ GetParticleTrailColor()

Color SpriteObject::GetParticleTrailColor ( )

◆ getSpriteFrame()

SpriteFrame * SpriteObject::getSpriteFrame ( )

◆ HasSprite()

bool SpriteObject::HasSprite ( )

◆ InitializeSpriteObjects()

void SpriteObject::InitializeSpriteObjects ( )
static

◆ IsUnpickable()

bool SpriteObject::IsUnpickable ( )

◆ OnInteraction()

void SpriteObject::OnInteraction ( unsigned int  uLayingItemID)
static

◆ spellSpriteStop()

void SpriteObject::spellSpriteStop ( )
inline

◆ updateObjectBLV()

void SpriteObject::updateObjectBLV ( unsigned int  uLayingItemID)
static
Original binary offset:
0x47136C

◆ updateObjectODM()

void SpriteObject::updateObjectODM ( unsigned int  uLayingItemID)
static
Original binary offset:
0x471C03

Member Data Documentation

◆ _lastParticleTime

Duration SpriteObject::_lastParticleTime

◆ _ticksPerParticle

Duration SpriteObject::_ticksPerParticle = 2_ticks

◆ containing_item

ItemGen SpriteObject::containing_item

◆ field_22_glow_radius_multiplier

int16_t SpriteObject::field_22_glow_radius_multiplier = 1

◆ field_54

int SpriteObject::field_54 = 0

◆ field_60_distance_related_prolly_lod

char SpriteObject::field_60_distance_related_prolly_lod = 0

◆ initialPosition

Vec3f SpriteObject::initialPosition

◆ spell_caster_pid

Pid SpriteObject::spell_caster_pid

◆ spell_level

int SpriteObject::spell_level = 0

◆ spell_skill

◆ spell_target_pid

Pid SpriteObject::spell_target_pid

◆ spellCasterAbility

ActorAbility SpriteObject::spellCasterAbility = ABILITY_ATTACK1

◆ tempLifetime

Duration SpriteObject::tempLifetime

◆ timeSinceCreated

Duration SpriteObject::timeSinceCreated

◆ uAttributes

SpriteAttributes SpriteObject::uAttributes = 0

◆ uFacing

uint16_t SpriteObject::uFacing = 0

◆ uObjectDescID

uint16_t SpriteObject::uObjectDescID = 0

◆ uSectorID

int SpriteObject::uSectorID = 0

◆ uSoundID

uint16_t SpriteObject::uSoundID = 0

◆ uSpellID

SpellId SpriteObject::uSpellID = SPELL_NONE

◆ uType

SpriteId SpriteObject::uType = SPRITE_NULL

◆ vPosition

Vec3f SpriteObject::vPosition

◆ vVelocity

Vec3f SpriteObject::vVelocity

The documentation for this struct was generated from the following files: