10 #include <vrfOM/sets/writeDIGuyAppearanceRepository.hpp>
11 #include <vrfOM/sets/readDIGuyAppearanceRepository.hpp>
12 #include <legionStandardOM/sets/writeLifeformRepository.hpp>
13 #include <legionStandardOM/sets/readLifeformRepository.hpp>
14 #include <vlpi/patchIdentifier.h>
15 #include <matrix/vlVector.h>
61 virtual const DtString diguyAppearance()
const override;
62 virtual void setDiguyAppearance(
const DtString&)
override;
64 virtual const DtString diguyType()
const override;
65 virtual void setDiguyType(
const DtString&)
override;
67 virtual const DtString diguyHeadAppearance()
const override;
68 virtual void setDiguyHeadAppearance(
const DtString&)
override;
70 virtual const DtString diguyItemAppearance()
const override;
71 virtual void setDiguyItemAppearance(
const DtString&)
override;
73 virtual const DtPatchIdentifier diguyPrimaryUnitPatch()
const override;
74 virtual void setDiguyPrimaryUnitPatch(
const DtPatchIdentifier& )
override;
76 virtual const DtPatchIdentifier diguySecondaryUnitPatch()
const override;
77 virtual void setDiguySecondaryUnitPatch(
const DtPatchIdentifier& )
override;
79 virtual const DtPatchIdentifier diguyRankPatch()
const override;
80 virtual void setDiguyRankPatch(
const DtPatchIdentifier& )
override;
82 virtual const DtString diguyCharacterName()
const override;
83 virtual void setDiguyCharacterName(
const DtString& )
override;
85 virtual const DtString diguyAction()
const override;
86 virtual void setDiguyAction(
const DtString&)
override;
88 virtual const double bodyWeight()
const override;
89 virtual void setBodyWeight(
const double&)
override;
91 virtual const bool diguyUsingAnimationOffset()
const override;
92 virtual void setDiguyUsingAnimationOffset(
const bool&)
override;
94 virtual const float diguyTransitionSpeed()
const override;
95 virtual void setDiguyTransitionSpeed(
const float&)
override;
97 virtual const DtVector diguyAnimationOffset()
const override;
98 virtual void setDiguyAnimationOffset(
const DtVector&)
override;
100 virtual void setDiguyType(
const DtString& newType,
const DtString& newAppearance )
override;
103 virtual void makeWritable()
override;
106 virtual void makeReadOnly()
override;
122 virtual const DtString diguyAppearance()
const override;
123 virtual const DtString diguyType()
const override;
124 virtual const DtString diguyHeadAppearance()
const override;
125 virtual const DtString diguyItemAppearance()
const override;
126 virtual const DtPatchIdentifier diguyPrimaryUnitPatch()
const override;
127 virtual const DtPatchIdentifier diguySecondaryUnitPatch()
const override;
128 virtual const DtPatchIdentifier diguyRankPatch()
const override;
129 virtual const DtString diguyCharacterName()
const override;
130 virtual const DtString diguyAction()
const override;
131 virtual const double bodyWeight()
const override;
132 virtual const bool diguyUsingAnimationOffset()
const override;
133 virtual const DtVector diguyAnimationOffset()
const override;
134 virtual const float diguyTransitionSpeed()
const override;
136 bool readComponentValid()
const;
138 bool findReadComponent();
159 virtual void updateDataStorage()
override;
163 myCurrentFrameState.updateStateData(sd);
164 myNextFrameState.updateStateData(sd);
168 virtual bool forceAdvance()
override;
171 virtual void firstFrameAdvance()
override;
176 myCurrentFrameState.aboutToBeDeleted();
177 myNextFrameState.aboutToBeDeleted();
LOM::ReadLifeformRepository myReadLifeformRepository
Definition: humanStateComponent.h:142
virtual DtFrameStateInterface * nextFrameState() override
Definition: humanStateComponent.h:156
Definition: stateDataTypes.h:23
virtual void setDiguyType(const DtString &newType, const DtString &newAppearance)
Definition: humanStateComponent.h:50
Definition: stateComponent.h:269
LOM::WriteLifeformRepository myWriteLifeformRepository
Definition: humanStateComponent.h:110
VRF::ReadDIGuyAppearanceRepository myReadHumanComponent
Definition: humanStateComponent.h:141
virtual const DtFrameStateInterface * nextFrameState() const override
Definition: humanStateComponent.h:157
DtHumanStateComponentCurrentFrame myCurrentFrameState
Definition: humanStateComponent.h:182
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:398
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Definition: stateComponent.h:231
virtual void updateStateData(DtStateData *sd) override
Implement to update data storage to the new state data.
Definition: humanStateComponent.h:161
Subclass from this to indicate that this will be a double buffered state component.
Definition: stateComponent.h:384
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Definition: doubleBufferedDataStorage.h:53
virtual void aboutToBeDeleted()
DtHumanStateComponentNextFrame myNextFrameState
Definition: humanStateComponent.h:183
In order to be a well defined state component, you must:
Definition: humanStateComponent.h:25
virtual const DtFrameStateInterface * currentFrameState() const override
Definition: humanStateComponent.h:155
VRF::WriteDIGuyAppearanceRepository myWriteHumanComponent
Definition: humanStateComponent.h:109
4) Define the state component that will contain the wrappers to the next and current frame states tha...
Definition: humanStateComponent.h:147
3) Define the current frame class. This will be used for read access.
Definition: humanStateComponent.h:114
DtStateComponentCreator< DtHumanStateComponentImplementation > DtHumanStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: humanStateComponent.h:191
virtual void aboutToBeDeleted() override
Definition: humanStateComponent.h:173
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:26
Definition: stateComponent.h:74
Contains the DtStateComponent class declaration.
bool isDoubleBuffered()
Definition: humanStateComponent.h:154
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:294
bool myFoundComponent
Definition: humanStateComponent.h:184
2) Define the next frame class. This will be used for write access.
Definition: humanStateComponent.h:54