VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundPatrolBetweenController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
13 
15 
16 #include <vlutil/vlString.h>
17 
18 class DtSimManager;
19 class DtSimMessage;
20 
21 
22 
32 {
33 
34 public:
35 
39  DtVrfObject* owner,
40  DtSimManager* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
46 
49  virtual const char* type() const;
50 
51  static void patrolBetweenCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
52  virtual DtSimTaskStatePtr currentTaskState() const;
53 
55  virtual const DtUUID& firstWaypoint() const;
56  virtual void setFirstWaypoint(const DtUUID& waypoint);
57 
59  virtual const DtUUID& secondWaypoint() const;
60  virtual void setSecondWaypoint(const DtUUID& waypoint);
61 
65  static DtSimComponent * creator(const DtString& name,
66  DtVrfObject* owner,
67  DtSimManager* simManager,
68  DtComponentDescriptor* desc = 0,
69  DtReaderWriterRegistry* parentRegistry = 0);
70 
72  virtual void registerTaskMsgCallbacks();
73 
75  virtual void stop();
76 
77 protected:
78  virtual void processPatrolBetween(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
82 
85  orig);
86 
90 };
91 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void stop()
Set port values for stopping, and mark the task complete.
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
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
DtGroundMoveToControllerComponent is a controller that models movement to a waypoint for ground entit...
Definition: groundMoveToControllerComponent.h:37
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
File: simMsg.h.
Definition: simMessage.h:35
virtual DtSimTaskStatePtr currentTaskState() const
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtGroundPatrolBetweenController is a controller that models patrolling between waypoint behavior for ...
Definition: groundPatrolBetweenController.h:31
virtual void registerTaskMsgCallbacks()
Overridden to register interest in move to messages.
virtual const char * type() const
Returns a string identifies the class type of component.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19
const DtGroundMoveToControllerComponent & operator=(const DtGroundMoveToControllerComponent &orig)
assignment operator; see comments on copy constructor!

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)