OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Animation::Sequence Struct Referencefinal

#include <animation.h>

Public Member Functions

 Sequence ()=default
 
 Sequence (const zenkit::MdsAnimation &hdr, std::string_view name)
 
bool isRotate () const
 
bool isMove () const
 
bool isFly () const
 
bool isIdle () const
 
bool isFinished (uint64_t now, uint64_t sTime, uint16_t comboLen) const
 
float atkTotalTime (uint16_t comboLen) const
 
bool canInterrupt (uint64_t now, uint64_t sTime, uint16_t comboLen) const
 
bool isInComboWindow (uint64_t t, uint16_t comboLen) const
 
bool isDefParWindow (uint64_t t) const
 
bool isDefWindow (uint64_t t) const
 
float totalTime () const
 
bool isAttackAnim () const
 
bool isPrehit (uint64_t sTime, uint64_t now) const
 
void processEvents (uint64_t barrier, uint64_t sTime, uint64_t now, EvCount &ev) const
 
void processSfx (uint64_t barrier, uint64_t sTime, uint64_t now, Npc *npc, Interactive *mob) const
 
void processPfx (uint64_t barrier, uint64_t sTime, uint64_t now, MdlVisual &visual, World &world) const
 
void processPfx (const MdsParticleEffect &p, MdlVisual &visual, World &world) const
 
Tempest::Vec3 speed (uint64_t at, uint64_t dt) const
 
Tempest::Vec3 translateXZ (uint64_t at) const
 
void schemeName (char buf[64]) const
 

Public Attributes

std::string name
 
std::string askName
 
const char * shortName = nullptr
 
uint32_t layer = 0
 
zenkit::AnimationFlags flags = zenkit::AnimationFlags::NONE
 
uint64_t blendIn = 0
 
uint64_t blendOut = 0
 
AnimClass animCls = Transition
 
bool reverse = false
 
std::string next
 
const SequencenextPtr = nullptr
 
const Animationowner = nullptr
 
std::vector< const Sequence * > comb
 
std::shared_ptr< AnimDatadata
 

Detailed Description

Definition at line 76 of file animation.h.

Constructor & Destructor Documentation

◆ Sequence() [1/2]

Animation::Sequence::Sequence ( )
default

◆ Sequence() [2/2]

Animation::Sequence::Sequence ( const zenkit::MdsAnimation &  hdr,
std::string_view  name 
)

Definition at line 206 of file animation.cpp.

Member Function Documentation

◆ atkTotalTime()

float Animation::Sequence::atkTotalTime ( uint16_t  comboLen) const

Definition at line 251 of file animation.cpp.

◆ canInterrupt()

bool Animation::Sequence::canInterrupt ( uint64_t  now,
uint64_t  sTime,
uint16_t  comboLen 
) const

Definition at line 259 of file animation.cpp.

◆ isAttackAnim()

bool Animation::Sequence::isAttackAnim ( ) const

Definition at line 293 of file animation.cpp.

◆ isDefParWindow()

bool Animation::Sequence::isDefParWindow ( uint64_t  t) const

Definition at line 279 of file animation.cpp.

◆ isDefWindow()

bool Animation::Sequence::isDefWindow ( uint64_t  t) const

Definition at line 285 of file animation.cpp.

◆ isFinished()

bool Animation::Sequence::isFinished ( uint64_t  now,
uint64_t  sTime,
uint16_t  comboLen 
) const

Definition at line 238 of file animation.cpp.

◆ isFly()

bool Animation::Sequence::isFly ( ) const
inline

Definition at line 82 of file animation.h.

◆ isIdle()

bool Animation::Sequence::isIdle ( ) const
inline

Definition at line 83 of file animation.h.

◆ isInComboWindow()

bool Animation::Sequence::isInComboWindow ( uint64_t  t,
uint16_t  comboLen 
) const

Definition at line 274 of file animation.cpp.

◆ isMove()

bool Animation::Sequence::isMove ( ) const
inline

Definition at line 81 of file animation.h.

◆ isPrehit()

bool Animation::Sequence::isPrehit ( uint64_t  sTime,
uint64_t  now 
) const

Definition at line 300 of file animation.cpp.

◆ isRotate()

bool Animation::Sequence::isRotate ( ) const
inline

Definition at line 80 of file animation.h.

◆ processEvents()

void Animation::Sequence::processEvents ( uint64_t  barrier,
uint64_t  sTime,
uint64_t  now,
EvCount ev 
) const

Definition at line 417 of file animation.cpp.

◆ processPfx() [1/2]

void Animation::Sequence::processPfx ( const MdsParticleEffect p,
MdlVisual visual,
World world 
) const

Definition at line 406 of file animation.cpp.

◆ processPfx() [2/2]

void Animation::Sequence::processPfx ( uint64_t  barrier,
uint64_t  sTime,
uint64_t  now,
MdlVisual visual,
World world 
) const

Definition at line 374 of file animation.cpp.

◆ processSfx()

void Animation::Sequence::processSfx ( uint64_t  barrier,
uint64_t  sTime,
uint64_t  now,
Npc npc,
Interactive mob 
) const

Definition at line 349 of file animation.cpp.

◆ schemeName()

void Animation::Sequence::schemeName ( char  buf[64]) const

Definition at line 558 of file animation.cpp.

◆ speed()

Tempest::Vec3 Animation::Sequence::speed ( uint64_t  at,
uint64_t  dt 
) const

Definition at line 519 of file animation.cpp.

◆ totalTime()

float Animation::Sequence::totalTime ( ) const

Definition at line 247 of file animation.cpp.

◆ translateXZ()

Tempest::Vec3 Animation::Sequence::translateXZ ( uint64_t  at) const

Definition at line 528 of file animation.cpp.

Member Data Documentation

◆ animCls

AnimClass Animation::Sequence::animCls = Transition

Definition at line 109 of file animation.h.

◆ askName

std::string Animation::Sequence::askName

Definition at line 103 of file animation.h.

◆ blendIn

uint64_t Animation::Sequence::blendIn = 0

Definition at line 107 of file animation.h.

◆ blendOut

uint64_t Animation::Sequence::blendOut = 0

Definition at line 108 of file animation.h.

◆ comb

std::vector<const Sequence*> Animation::Sequence::comb

Definition at line 116 of file animation.h.

◆ data

std::shared_ptr<AnimData> Animation::Sequence::data

Definition at line 117 of file animation.h.

◆ flags

zenkit::AnimationFlags Animation::Sequence::flags = zenkit::AnimationFlags::NONE

Definition at line 106 of file animation.h.

◆ layer

uint32_t Animation::Sequence::layer = 0

Definition at line 105 of file animation.h.

◆ name

std::string Animation::Sequence::name

Definition at line 103 of file animation.h.

◆ next

std::string Animation::Sequence::next

Definition at line 112 of file animation.h.

◆ nextPtr

const Sequence* Animation::Sequence::nextPtr = nullptr

Definition at line 113 of file animation.h.

◆ owner

const Animation* Animation::Sequence::owner = nullptr

Definition at line 114 of file animation.h.

◆ reverse

bool Animation::Sequence::reverse = false

Definition at line 110 of file animation.h.

◆ shortName

const char* Animation::Sequence::shortName = nullptr

Definition at line 104 of file animation.h.


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