VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanPosturePSR.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 
11 #pragma once
12 
14 #include <readerWriter/rwInt.h>
15 #include <readerWriter/rwReal.h>
18 
21 {
22 public:
23 
25  DtHumanPosturePSR(DtLocalObject* vrfObject,
26  const DtString& rwName = DtString::nullString(),
27  DtReaderWriterRegistry* parentRegistry = 0);
28 
31  const DtString& rwName = DtString::nullString(),
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
35  virtual ~DtHumanPosturePSR() override;
36 
39 
42  const DtString& rwName = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0) const override;
43 
46  virtual DtString type() const override;
47 
50  virtual DtLifeformStaticPosture desiredStaticPosture() const;
51  virtual void setDesiredStaticPosture(const DtLifeformStaticPosture& posture);
53 
56  virtual float rollbackTransitionSpeed() const;
57  virtual void setRollbackTransitionSpeed( float transitionSpeed );
59 
62  virtual int rollbackTransitionSpeedDelay() const;
63  virtual void setRollbackTransitionSpeedDelay( int numTicks );
65 
66 public:
67 
69  static DtVrfProcessStateRepository* creator (const DtString& rwName,
70  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
71 
72 protected:
73 
77 
82 
85 
86 };
DtRwReal myRollbackTransitionSpeed
The previous transition speed for the entity. This is so the transition speed level can be restored a...
Definition: humanPosturePSR.h:81
Definition: readerWriterRegistry.h:39
DtRwInt myDesiredStaticPosture
The desired static posture for the entity. This is the posture that has been assigned by the user...
Definition: humanPosturePSR.h:76
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtLifeformStaticPosture
These are the available static postures for lifeform (human) entities. Static postures are equivalent...
Definition: lifeformStaticPostures.h:22
Description: Readable, Writable int.
Definition: rwInt.h:25
Contains the DtLifeformStaticPosture enumeration declaration.
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual DtString type() const =0
Returns the string type of the repository, as defined in psrTypes.h.
DtRwInt myRollbackTransitionSpeedDelay
How many ticks to wait for rolling back the transition speed.
Definition: humanPosturePSR.h:84
Stores state data for the DtHumanPostureContoller.
Definition: humanPosturePSR.h:20
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)