VR-Forces Developer's Guide
 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 
28 {
29 
30 public:
31 
34  DtHumanSetController(const DtString& name,
35  DtLocalObject* owner,
36  DtSimulationServices* simManager,
37  DtComponentDescriptor* desc = 0,
38  DtReaderWriterRegistry* parentRegistry = 0);
39 
41  virtual ~DtHumanSetController() override;
42 
45  virtual const char* type() const override;
46 
47  virtual void processSetPosture(DtSimMessage * msg);
48  virtual void processSetWeaponState(DtSimMessage * msg);
49  virtual void processSetSurrender(DtSimMessage * msg);
50 
51  static void setPostureCallback(DtSimMessage * msg, void * usrData);
52  static void setWeaponStateCallback(DtSimMessage * msg, void * usrData);
53  static void setSurrenderCallback(DtSimMessage * msg, void * usrData);
54 
58  static DtSimComponent * creator(const DtString& name,
59  DtLocalObject* owner,
60  DtSimulationServices* simManager,
61  DtComponentDescriptor* desc = 0,
62  DtReaderWriterRegistry* parentRegistry = 0);
63 
64 protected:
68 
71 
73  const DtHumanSetController & operator=(const
74  DtHumanSetController& orig);
75 
76 protected:
78  virtual void processSetAppearance(DtSimMessage* msg) override;
79 
80 protected:
82  virtual void initializeSetsToRegister() override;
83 };
84 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Contains the DtLocalEntitySetController class declaration.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
File: simMsg.h.
Definition: simMessage.h:35
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtHumanSetController handles DtSetDataRequest messages for individual lifeform entities.
Definition: humanSetController.h:27
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)
A locally simulated VRF object.
Definition: localObject.h:98
DtLocalEntitySetController is a controller that handles all DtSetDataRequest messages for an entity a...
Definition: localEntitySetController.h:26

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)