VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileSimObjectDecorator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <boost/signals2.hpp>
11 
15 {
16 public:
18  virtual ~DtMissileSimObjectDecorator() override;
19 
23  virtual DtVector targetLocation() const;
24 
26  virtual double distanceSquaredToTarget() const;
27 
29  virtual DtVector worldVectorToTarget() const;
30 
32  virtual bool passedTarget() const;
33 
34  virtual const DtUUID& target() const;
35  virtual const DtUUID& attacker() const;
36 
37  boost::signals2::signal<void ()> signal_targetAttackerChanged;
38 
39 protected:
40  virtual void updateMissileInformation();
41 
42 protected:
46  DtVector myTargetPoint;
47  boost::signals2::scoped_connection myMissileInfoUpdatedConnection;
48 };
49 
51 {
52 public:
53  virtual DtSimObjectDecorator* createDecorator(const DtSimObject* o) const override
54  { return new DtMissileSimObjectDecorator(o); };
56  { throw makVrf::DtUnimplementedMethod("The DtMissileDecoratorCreator is not created for the DtLocalObject."); };
57 
58  virtual const char* DecoratorType() const override { return "DtMissileDecoratorCreator"; };
59 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Definition: stateDataTypes.h:23
virtual DtSimObjectDecorator * createDecorator(const DtSimObject *o) const override
Definition: missileSimObjectDecorator.h:53
DtUUID myTarget
Definition: missileSimObjectDecorator.h:44
DtVector myTargetPoint
Definition: missileSimObjectDecorator.h:46
virtual DtLocalObjectDecorator * createDecorator(DtLocalObject *o) const override
Definition: missileSimObjectDecorator.h:55
This will keep track of the missile target, attacker and have an accessor to distance to target objec...
Definition: missileSimObjectDecorator.h:14
DtSimObjectReference myTargetObject
Definition: missileSimObjectDecorator.h:43
virtual const char * DecoratorType() const override
Definition: missileSimObjectDecorator.h:58
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
Definition: missileSimObjectDecorator.h:50
boost::signals2::scoped_connection myMissileInfoUpdatedConnection
Definition: missileSimObjectDecorator.h:47
Definition: decoratorBase.h:57
DtUUID myAttacker
Definition: missileSimObjectDecorator.h:45
Definition: decoratorBase.h:30
boost::signals2::signal< void()> signal_targetAttackerChanged
Definition: missileSimObjectDecorator.h:37
Definition: decoratorBase.h:44
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)