A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Status.hh
1#pragma once
2
3#include <egg/core/BitFlag.hh>
4
5namespace Kinoko::Kart {
6
8enum class eStatus {
10 Brake = 1,
26 StickLeft = 13,
31 Hop = 19,
32 Boost = 20,
33 DisableAcceleration = 22,
34 AirStart = 23,
39 DriftAuto = 28,
40 Wheelie = 29,
41 JumpPad = 30,
42 RampBoost = 31,
43
44 InAction = 32,
45 TriggerRespawn = 33,
46 CannonStart = 35,
47 InCannon = 36,
48 TrickStart = 37,
49 InATrick = 38,
53 JumpPadMushroomCollision = 43,
60 Burnout = 50,
61 TrickRot = 54,
62 JumpPadMushroomVelYInc = 55,
66 Trickable = 62,
67
68 WheelieRot = 68,
69 SkipWheelCalc = 69,
70 JumpPadMushroomTrigger = 70,
71 Shocked = 71,
72 MovingWaterStickyRoad = 73,
73 NoSparkInvisibleWall = 75,
74 CollidingOffroad = 76,
75 InRespawn = 77,
76 AfterRespawn = 78,
77 Crushed = 80,
78 JumpPadFixedSpeed = 84,
79 MovingWaterDecaySpeed = 85,
80 JumpPadDisableYsusForce = 86,
81 HalfpipeMidair = 87,
82
86 HWG = 101,
87 AfterCannon = 102,
90 MovingWaterVertical = 105,
91 EndHalfPipe = 107,
92
93 AutoDrift = 133,
94
96};
98
99} // namespace Kinoko::Kart
Wrapper around a variable length bitfield with an enum corresponding to its bits.
Definition BitFlag.hh:324
Pertains to kart-related functionality.
eStatus
This is a union of the 5 bitfields contained within KartState.
Definition Status.hh:8
@ Wheelie
Set while we are in a wheelie (even during the countdown).
Definition Status.hh:40
@ HopStart
Set if m_bDriftInput was toggled on this frame.
Definition Status.hh:20
@ RejectRoad
Collision which causes a change in the player's pos and rot.
Definition Status.hh:64
@ DisableBackwardsAccel
Enforces a 20f delay when reversing after charging SSMT.
Definition Status.hh:58
@ HalfPipeRamp
Set while colliding with zipper KCL.
Definition Status.hh:51
@ FlagMax
Internal. Total number of bits in the status.
Definition Status.hh:95
@ SoftWallPush
Tracks whether we are being pushed by a soft wall or HWG.
Definition Status.hh:84
@ Boost
Set while in a boost.
Definition Status.hh:32
@ BoostOffroadInvincibility
Set if we should ignore offroad slowdown this frame.
Definition Status.hh:50
@ HWG
Set when "Horizontal Wall Glitch" is active.
Definition Status.hh:86
@ ZipperTrick
Set while tricking mid-air from a zipper.
Definition Status.hh:57
@ SlipdriftCharge
Currently in a drift w/ automatic.
Definition Status.hh:38
@ SoftWallSuspension
Changes wheel physics after touching a soft wall.
Definition Status.hh:83
@ Hop
Set while we are in a drift hop. Clears when we land.
Definition Status.hh:31
@ MushroomBoost
Set while we are in a mushroom boost.
Definition Status.hh:37
@ SoftWallUnlockRotation
Set when we are in "Barrel Roll" state.
Definition Status.hh:85
@ StickyRoad
Like the rBC stairs.
Definition Status.hh:29
@ ZipperStick
Set while mid-air and still influenced by the zipper.
Definition Status.hh:56
@ StickLeft
Set on left stick input. Mutually exclusive to m_bStickRight.
Definition Status.hh:26
@ RespawnKillY
Set while respawning to cap external velocity at 0.
Definition Status.hh:59
@ VehicleBodyFloorCollision
Set if the vehicle body is colliding with the floor.
Definition Status.hh:23
@ ChargeStartBoost
Like m_bAccelerate but during countdown.
Definition Status.hh:89
@ LargeFlipHit
Set when hitting an exploding object.
Definition Status.hh:36
@ RejectRoadTrigger
e.g. DK Summit ending, and Maple Treeway side walls.
Definition Status.hh:65
@ GroundStart
Set first frame landing from airtime.
Definition Status.hh:22
@ AllWheelsCollision
Set when all wheels are touching floor collision.
Definition Status.hh:25
@ Accelerate
Accel button is pressed.
Definition Status.hh:9
@ StickRight
Set on right stick input. Mutually exclusive to m_bStickLeft.
Definition Status.hh:35
@ ActionMidZipper
Set when we enter an action while mid-air from a zipper.
Definition Status.hh:88
@ DriftInput
A "fake" button, normally set if you meet the speed requirement to hop.
Definition Status.hh:15
@ AirtimeOver20
Set after 20 frames of airtime, resets on landing.
Definition Status.hh:28
@ ZipperBoost
Set when boosting after landing from a zipper.
Definition Status.hh:55
@ DriftManual
Currently in a drift w/ manual.
Definition Status.hh:16
@ OverZipper
Set while mid-air from a zipper.
Definition Status.hh:52
@ ChargingSSMT
Tracks whether we are charging a stand-still mini-turbo.
Definition Status.hh:63
@ AccelerateStart
Set if m_bAccelerate was toggled on this frame.
Definition Status.hh:21
@ Burnout
Set during a burnout on race start.
Definition Status.hh:60
@ WallCollisionStart
Set if we have just started colliding with a wall.
Definition Status.hh:27
@ AnyWheelCollision
Set when any wheel is touching floor collision.
Definition Status.hh:24
@ AutoDrift
True if auto transmission, false if manual.
Definition Status.hh:93
@ Wall3Collision
Set when colliding with wall KCL COL_TYPE_WALL_2.
Definition Status.hh:18
@ TouchingGround
Set when any part of the vehicle is colliding with floor KCL.
Definition Status.hh:30
@ ZipperInvisibleWall
Set when colliding with invisible wall above a zipper.
Definition Status.hh:54
@ BeforeRespawn
Set on respawn collision, cleared on position snap.
Definition Status.hh:17
@ WallCollision
Set if we are colliding with a wall.
Definition Status.hh:19