VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifForceHostility.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ifForceHostility.h,v $ $Revision: 1.2 $ $State: Exp $
00007 ** Created: 7/16/04, MEM Updated:
00008 *******************************************************************************/
00009 
00012 
00013 
00019 
00020 
00021 #ifndef ifForceHostility_H_
00022 #define ifForceHostility_H_
00023 
00024 #include <vrfExtProtocol/ifaceCont.h>
00025 #include <vlutil/vlString.h>
00026 #include <vlutil/vlNetTypes.h>
00027 #include <vl/hostStructs.h>
00028 
00029 #include <vector>
00030 
00031 struct DtNetIfForceHostity
00032 {
00033    DtNetU8 myNumForces;  
00034    DtNetU8 myForce;      //id of force to set
00035    //list of force settings as chars
00036 };
00037 
00038 
00039 //forward defs
00040 typedef std::vector<bool> DtHostilityVector;
00041 
00047 #include "vrfmsgs/vrfmsgsDefines.h"
00048 class DT_DLL_vrfmsgs DtIfForceHostility : public DtSimInterfaceContent
00049 {
00050 
00051 public:      
00053    DtIfForceHostility();
00054 
00056    DtIfForceHostility(const DtIfForceHostility & orig);
00057 
00059    const DtIfForceHostility& operator=(const DtIfForceHostility& orig);
00060 
00061    virtual ~DtIfForceHostility();
00062 
00063    virtual int type() const;
00064 
00065    virtual DtSimInterfaceContent* clone() const;
00066 
00068    virtual int force() const;
00069    virtual void setForce(int id);
00070 
00072    virtual int numberOfHostilityEntries() const;
00073    virtual void setNumberOfHostilityEntries(int num);
00074 
00075    virtual const DtHostilityVector& hostilityVector() const;
00076    virtual DtHostilityVector& hostilityVector();
00077 
00078    virtual int netRepSize() const;
00079 
00080    virtual bool setFromNet(const char* contentBuffer,  unsigned contentSize);
00081    virtual bool setToNet();
00082 
00084    virtual void printDataToString(DtString& str);
00085 
00086    static DtSimInterfaceContent* creator();
00087 
00088 protected:
00089    int myForce;
00090    DtHostilityVector myHostilityVector;
00091 };
00092 
00093 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)