mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-25 07:02:47 -04:00
9b14f18755
* e_rd cleanup * first pass * fix ? * rename * more rename * fix other platform * fix typo * more documentation * more work * fix build * fix * more doc * camera work * more work * cleanup * more work * clean up + fix build * fix build * more work * change mSpeedRate name * change description * more work * fire eff work * fix build * fix match * debug fix ? * update description * rename field
54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
#include "d/dolzel.h" // IWYU pragma: keep
|
|
|
|
#include "d/d_a_horse_static.h"
|
|
#include "d/actor/d_a_e_wb.h"
|
|
#include "d/actor/d_a_tag_hstop.h"
|
|
|
|
BOOL e_wb_class::checkWait() {
|
|
return ride_mode == 0x2A;
|
|
}
|
|
|
|
void e_wb_class::setPlayerRideNow() {
|
|
action = ACT_PL_RIDE_NOW;
|
|
ride_mode = 0;
|
|
status_flag |= u16(3);
|
|
}
|
|
|
|
void e_wb_class::setPlayerRide() {
|
|
action = ACT_PL_RIDE;
|
|
ride_mode = 0;
|
|
status_flag |= u16(3);
|
|
|
|
sound.setLinkRiding(true);
|
|
}
|
|
|
|
void e_wb_class::getOff() {
|
|
if (!checkDownDamage() || action == ACT_PL_RIDE_NOW) {
|
|
action = 0;
|
|
} else {
|
|
old_action = 0;
|
|
}
|
|
|
|
ride_mode = 0;
|
|
status_flag &= u16(~3);
|
|
sound.setLinkRiding(false);
|
|
}
|
|
|
|
BOOL e_wb_class::checkDownDamage() {
|
|
return action != ACT_PL_RIDE && action != ACT_PL_RIDE2 && action != ACT_S_DAMAGE;
|
|
}
|
|
|
|
BOOL e_wb_class::checkNormalRideMode() const {
|
|
return action != ACT_PL_RIDE2 || ride_mode < 1;
|
|
}
|
|
|
|
void e_wb_class::setRunRideMode() {
|
|
if (action == ACT_PL_RIDE) {
|
|
ride_mode = 0;
|
|
action = ACT_S_DAMAGE;
|
|
old_action = ACT_PL_RIDE;
|
|
}
|
|
}
|
|
|
|
daTagHstop_c* daTagHstop_c::m_top;
|