mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user