This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+53
View File
@@ -0,0 +1,53 @@
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "Humanoid/HumanoidState.h"
namespace RBX {
namespace HUMAN {
// pure simulation!
extern const char* const sDead;
class Dead : public Named<HumanoidState, sDead>
{
private:
/*override*/ StateType getStateType() const {return DEAD;}
/*override*/ void onStepImpl();
/*override*/ void onSimulatorStepImpl(float stepDt);
/*override*/ void onComputeForceImpl() {}
/*override*/ bool enableAutoJump() const { return false; }
public:
Dead(Humanoid* humanoid, StateType priorState);
};
extern const char* const sFallingDown;
class FallingDown : public Named<HumanoidState, sFallingDown>
{
private:
/*override*/ StateType getStateType() const {return FALLING_DWN;}
/*override*/ void onComputeForceImpl() {}
/*override*/ bool enableAutoJump() const { return false; }
public:
FallingDown(Humanoid* humanoid, StateType priorState);
};
extern const char* const sPhysics;
class Physics : public Named<HumanoidState, sPhysics>
{
private:
/*override*/ StateType getStateType() const {return PHYSICS;}
/*override*/ void onComputeForceImpl() {}
/*override*/ bool enableAutoJump() const { return false; }
public:
Physics(Humanoid* humanoid, StateType priorState);
};
} // namespace HUMAN
} // namespace RBX