VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
culturalFeatureStateRepository.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 
13 
14 #include <vlutil/vlMachineTypes.h>
16 
24 {
25 private:
28 
31 
35 
36 public:
37 
39  DtCulturalFeatureStateRepository (DtLocalObject* vrfObject, const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtCulturalFeatureStateRepository() override;
44 
45  virtual bool init() override;
46 
48  virtual DtString type() const override;
49 
51  virtual const int vrfMovingObjectStateRepositorySubType() const override;
52 
54  virtual const int culturalFeatureStateRepositorySubType() const;
55 
56  virtual void initializeFromParameters() override;
57 
58  static DtVrfObjectStateRepository* creator (const DtString& name, DtLocalObject* localObject,
59  DtReaderWriterRegistry* parentRegistry);
60 
63  virtual bool gravityAligned() const;
64  virtual void setGravityAligned(bool);
65 
73  virtual void clampToGround(const DtVector& location, const DtReal heading,
74  bool* dataAvailable = 0, bool requireAllData = false) override;
75 
76  virtual bool attachToParent(DtSimObjectReference parentSR) override;
77  virtual void tick() override;
78 
79 protected:
81 };
Contains the DtVrfMovingObjectStateRepository class declaration.
virtual bool init() override
Our &#39;virtual&#39; constructor. Calls all the create&lt;&gt;() methods.
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
static DtVrfObjectStateRepository * creator(const DtString &name, DtLocalObject *vrfObject, DtReaderWriterRegistry *parentRegistry)
DtVrfMovingObjectStateRepository & operator=(const DtVrfMovingObjectStateRepository &orig)
Assignment Operator.
Definition: readerWriterRegistry.h:39
virtual const int vrfMovingObjectStateRepositorySubType() const
Returns DtVrfMovingObjectStateRepositorySubTypeBase.
Description: This repository is an internal repository accessible only by local objects. It holds all information that is common to all the forms of all entity/aggregate/control objects within VR-Forces.
Definition: vrfObjectStateRepository.h:91
Description: This repository holds all information that is common to all the forms of cultural featur...
Definition: culturalFeatureStateRepository.h:22
virtual bool attachToParent(const DtUUID &parent) override
Looks up the parent state repository using the given echelon ID and puts it in a call to attachToPare...
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void clampToGround(const DtVector &location, const DtReal heading, bool *dataAvailable=0, bool requireAllData=false)
Place entity on ground at location and heading. Calls clampToGround with gravity of false...
virtual void tick() override
Tick function.
DtRwBoolean myGravityAligned
Definition: culturalFeatureStateRepository.h:80
virtual void initializeFromParameters() override
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual DtString type() const override
returns DtSimObjectStateRepositoryType
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)