WSF
WsfScriptBattleManagerClass.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// The use, dissemination or disclosure of data in this file is subject to
7// limitation or restriction. See accompanying README and LICENSE for details.
8// ****************************************************************************
9/*******************************************************************************
10*
11* File: WsfScriptBattleManagerClass.hpp
12*
13* Classification: UNCLASSIFIED
14*
15* Details:
16*
17* Contract Number:
18* Contractor Name: Radiance Technologies
19* Address: 350 Wynn Drive
20* Huntsville, AL 35805
21*
22* Abstract: This is an abstract script base class for all battle manager
23* script classes to inherit from. It provides necessary common functionality.
24* It's not pure abstract in the sense that we actually instantiate an object of this
25* type purely for type registration purposes with the sole intent of giving AFSIM
26* scripts the ability to up/down cast to and from the inherited types.
27*
28*******************************************************************************/
29
30#ifndef WSF_SCRIPT_BATTLE_MANAGER_CLASS_HPP
31#define WSF_SCRIPT_BATTLE_MANAGER_CLASS_HPP
32
34#include <WsfBMCommon.hpp>
35
36class WSF_IADS_C2_LIB_EXPORT WsfScriptBattleManagerClass : public WsfScriptProcessorClass
37{
38 public:
39
40 WsfScriptBattleManagerClass(const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
41
42 void* Create(const UtScriptContext& aContext) override;
43 void* Clone(void* aObjectPtr) override;
44 void Destroy(void* aObjectPtr) override;
45
46 static const char* SCRIPT_CLASS_NAME;
47 static const char* BASE_CLASS_NAME;
48
49 // Plugin API.
50 static const char* GetScriptClassName();
51 static const char* GetBaseClassName();
52
54 UT_DECLARE_SCRIPT_METHOD(HasCommitAuthority);
55};
56
57#endif
UT_DECLARE_SCRIPT_METHOD(HasCommitAuthority)
static const char * BASE_CLASS_NAME
Definition WsfScriptBattleManagerClass.hpp:47
static const char * GetScriptClassName()
Definition WsfScriptBattleManagerClass.cpp:83
static const char * SCRIPT_CLASS_NAME
Definition WsfScriptBattleManagerClass.hpp:46
static const char * GetBaseClassName()
Definition WsfScriptBattleManagerClass.cpp:88
WsfScriptBattleManagerClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfScriptBattleManagerClass.cpp:55
void * Create(const UtScriptContext &aInstance) override
Definition WsfScriptObjectClass.cpp:44
void Destroy(void *aObjectPtr) override
Definition WsfScriptObjectClass.cpp:56
void * Clone(void *aObjectPtr) override
Definition WsfScriptObjectClass.cpp:50
WsfScriptProcessorClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfScriptProcessorClass.cpp:31
Copyrights Multiple, All Rights Reserved