VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 
13 #pragma once
15 #include "vrfobjcore/simRadio.h"
16 
17 class DtSimMessage;
18 class DtVrfObject;
19 
20 
30 {
31 
32 public:
33 
36  DtHumanSetController(const DtString& name,
37  DtVrfObject* owner,
38  DtSimManager* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtHumanSetController();
44 
47  virtual const char* type() const;
48 
49  virtual void processSetPosture(DtSimMessage * msg);
50  virtual void processSetWeaponState(DtSimMessage * msg);
51  virtual void processSetSurrender(DtSimMessage * msg);
52 
53  static void setPostureCallback(DtSimMessage * msg, void * usrData);
54  static void setWeaponStateCallback(DtSimMessage * msg, void * usrData);
55  static void setSurrenderCallback(DtSimMessage * msg, void * usrData);
56 
60  static DtSimComponent * creator(const DtString& name,
61  DtVrfObject* owner,
62  DtSimManager* simManager,
63  DtComponentDescriptor* desc = 0,
64  DtReaderWriterRegistry* parentRegistry = 0);
65 
66 protected:
70 
73 
75  const DtHumanSetController & operator=(const
76  DtHumanSetController& orig);
77 
78 protected:
80  virtual void processSetAppearance(DtSimMessage* msg);
81 
82 protected:
84  virtual void initializeSetsToRegister();
85 };
86 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Contains the DtLocalEntitySetController class declaration.
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
File: simMsg.h.
Definition: simMessage.h:35
virtual const char * type() const
Returns a string identifies the class type of component.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtHumanSetController handles DtSetDataRequest messages for individual lifeform entities.
Definition: humanSetController.h:29
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
const DtLocalEntitySetController & operator=(const DtLocalEntitySetController &orig)
assignment operator
virtual void initializeSetsToRegister()
Sets up the myRegisterSets map with sets to register for this controller.
virtual void processSetAppearance(DtSimMessage *msg)
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:29

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)