mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
|
#include "stdafx.h"
|
|
|
|
#include "Humanoid/Seated.h"
|
|
#include "Humanoid/Humanoid.h"
|
|
|
|
namespace RBX {
|
|
namespace HUMAN {
|
|
|
|
const char* const sSeated = "Seated";
|
|
|
|
Seated::Seated(Humanoid* humanoid, StateType priorState) : Named<HumanoidState, sSeated>(humanoid, priorState)
|
|
{
|
|
setCanThrottleState(true);
|
|
}
|
|
|
|
// note - constructor always sets to false
|
|
|
|
Seated::~Seated()
|
|
{
|
|
getHumanoid()->setSeatPart(NULL);
|
|
getHumanoid()->setSit(false);
|
|
getHumanoid()->doneSittingSignal();
|
|
}
|
|
|
|
///////////////////////////////////////////////
|
|
|
|
const char* const sPlatformStanding = "PlatformStanding";
|
|
|
|
PlatformStanding::PlatformStanding(Humanoid* humanoid, StateType priorState) : Named<HumanoidState, sPlatformStanding>(humanoid, priorState)
|
|
{
|
|
setCanThrottleState(true);
|
|
}
|
|
|
|
// note - constructor always sets to false
|
|
|
|
PlatformStanding::~PlatformStanding()
|
|
{
|
|
getHumanoid()->setPlatformStanding(false);
|
|
getHumanoid()->donePlatformStandingSignal();
|
|
}
|
|
|
|
|
|
|
|
|
|
} // HUMAN
|
|
} // namespace
|