VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
diGuyControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: diGuyControllerPSR.h,v $ $Revision: 1.4 $ $State: Exp $
7 ** Created: 4/16/08 MEM
8 *******************************************************************************/
9 
12 
13 #ifndef diGuyControllerPSR_H_
14 #define diGuyControllerPSR_H_
15 
17 #include <readerWriter/rwReal.h>
18 #include <readerWriter/rwBoolean.h>
19 #include <readerWriter/rwString.h>
20 #include <vrfutil/rwStringList.h>
21 
28 
30 
32 
34 {
35 public:
36 
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
44  const DtString& rwName = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
48  virtual ~DtDiGuyControllerPSR();
49 
52 
55  const DtString& rwName = DtString::nullString(),
56  DtReaderWriterRegistry* parentRegistry = 0) const;
57 
59  virtual DtString type() const;
60 
62  virtual void setElapsedTime(double time);
63  virtual double elapsedTime() const;
64 
66  virtual void setAnimationDuration(double time);
67  virtual double animationDuration() const;
68 
72  virtual void setDirectionOfMovement(double angle);
73  virtual double directionOfMovement() const;
74 
76  virtual void setAmRotating(bool rot);
77  virtual bool amRotating() const;
78 
80  virtual void setDefaultAnimationName(const DtString & name);
81  virtual const DtString & defaultAnimationName() const;
82 
84  virtual void addDemeanor( const DtString& demeanor );
85  virtual void removeDemeanor( const DtString& demeanor );
86  virtual bool hasDemeanor( const DtString& demeanor ) const;
87  virtual void getAdjustedDemeanors( std::list<DtString>& list ) const;
88  virtual unsigned int sizeOfAdjustedDemeanors() const;
89 
90 public:
91 
93  static DtVrfProcessStateRepository* creator (const DtString& rwName,
94  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
95 
96 protected:
97 
105 };
106 
107 #endif
DtRwDemeanorList myAdjustedDemeanors
Definition: diGuyControllerPSR.h:104
DtRwReal myElapsedTime
Definition: diGuyControllerPSR.h:98
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtRwReal myDirectionOfMovement
See setDirectionOfMovement()
Definition: diGuyControllerPSR.h:102
DtRwBoolean myAmRotating
Definition: diGuyControllerPSR.h:100
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwString myDefaultAnimationName
Definition: diGuyControllerPSR.h:103
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwReal myDuration
Definition: diGuyControllerPSR.h:99
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
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
Definition: diGuyControllerPSR.h:33
Definition: rwStringList.h:20
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwStringList DtRwDemeanorList
class DtDiGuyControllerPSR:
Definition: diGuyControllerPSR.h:31
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)