VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwEngagementInfo.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwString.h>
13 #include "readerWriter/rwVector.h"
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwInt.h>
16 #include <readerWriter/rwReal.h>
17 #include "vrfutil/vrfutilDefines.h"
18 #include <vrfutil/rwUUID.h>
19 
21 
24 {
25 public:
26 
28 
30 
31  DtRwEngagementInfo(const DtString& name,
32  DtReaderWriterRegistry* const parentRegistry = NULL);
34  DtReaderWriterRegistry* const parentRegistry = NULL);
35 
37  DtReaderWriterRegistry* const parentRegistry = NULL);
39 
41  virtual ~DtRwEngagementInfo();
42 
45 
48 
49  virtual void setTargetLocation(const DtVector& vector);
50  virtual DtVector targetLocation() const;
52 
55 
56  virtual const DtUUID& target() const;
58 
60  virtual void setTarget(const DtUUID&);
62 
64 
65  virtual double originalDateAndTimeOfContact() const;
66  virtual void setOriginalDateAndTimeOfContact(double d);
68 
70 
71  virtual bool engagementComplete() const;
72  virtual void setEngagementComplete(bool complete);
74 
76 
77  virtual int numberKilled() const;
78  virtual void setNumberKilled(int num);
80 
82 
83  virtual int numberCaptured() const;
84  virtual void setNumberCaptured(int num);
86 
88  virtual DtRwEngagementInfo* clone() const;
89 
90  bool operator==(const DtRwEngagementInfo&) const;
91 
92 
93 protected:
94 
101 };
102 
103 namespace DtBufferSerialize
104 {
106  DT_DLL_vrfutil int getSize(const DtRwEngagementInfo& info);
107 
113  DT_DLL_vrfutil char *encode(const DtRwEngagementInfo& info, char *buffer);
114 
120  DT_DLL_vrfutil const char *decode(DtRwEngagementInfo& info, const char *buffer);
121 }
bool operator==(const DtReaderWriter &) const
Equivalence operator.
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtRwBoolean myEngagementComplete
Definition: rwEngagementInfo.h:97
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtRwInt myNumberCaptured
Definition: rwEngagementInfo.h:99
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
uuid class
Definition: rwUUID.h:26
Definition: asyncJobServer.h:37
Definition: rwVector.h:23
DtRwInt myNumberKilled
Definition: rwEngagementInfo.h:98
DtRwReal myOriginalDateAndTimeOfContact
Definition: rwEngagementInfo.h:100
Description: Readable, Writable int.
Definition: rwInt.h:25
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
DtRwUUID myTarget
Definition: rwEngagementInfo.h:95
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
DtRwVector myTargetLocation
Definition: rwEngagementInfo.h:96
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
File: rwVector.h.
Contains information about an engagement against a single enemy.
Definition: rwEngagementInfo.h:23

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)