VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setLifeFormWeaponStateRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
19 #include <vlutil/vlNetTypes.h>
20 
21 
22 
26 {
28  DtNetU32 padding;
29 };
30 
38 {
39 
40 public:
41 
44 
47  DtSetLifeFormWeaponStateRequest(const DtString & writeName,
48  DtReaderWriterRegistry * parentRegistry = 0);
49 
52  orig, DtReaderWriterRegistry * parentRegistry = 0);
53 
56 
57  virtual ~DtSetLifeFormWeaponStateRequest() override;
58 
60  virtual const DtSetMessageType& type() const override;
61 
63  virtual DtSetDataRequest * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
64 
66  virtual DtString stringRep() const override;
67 
68  virtual DtRwIndividualLifeFormWeaponStateType lifeFormWeaponState() const;
69  virtual void setLifeFormWeaponState(DtRwIndividualLifeFormWeaponStateType & weaponState);
70 
71  virtual DtWeaponState weaponState() const;
72  virtual void setWeaponState(DtWeaponState weaponState);
73 
76  virtual int netRepSize() const override;
77 
79  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
80 
83  virtual bool setToNet() override;
84 
85  static DtSetDataRequest * creator();
86 
87 protected:
88 
90 
91 };
92 
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
Description: Readable, Writable DtRwIndividualLifeFormWeaponStateType.
Definition: rwIndividualLifeFormWeaponStateType.h:30
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
DtNetU32 padding
Definition: setLifeFormWeaponStateRequest.h:28
DtRwIndividualLifeFormWeaponStateType myLifeFormWeaponState
Definition: setLifeFormWeaponStateRequest.h:89
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
DtNetU32 myLifeFormWeaponState
Definition: setLifeFormWeaponStateRequest.h:27
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
File: setLifeFormWeaponState.h.
Definition: setLifeFormWeaponStateRequest.h:25
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
DtSetLifeFormWeaponStateRequest is used to force a state for an individual lifeform. It inherits read/writableness from DtSetDataRequest, and includes the moving action to use (see indLifeFormSR.h).
Definition: setLifeFormWeaponStateRequest.h:37

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)