VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nbcWeaponController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vlutil/vlString.h"
14 
16 
21 {
22 public:
24  DtNbcWeaponController(const DtString & name, DtLocalObject* owner,
25  DtSimulationServices * simManager, DtComponentDescriptor* desc = NULL,
26  DtReaderWriterRegistry * parentRegistry = 0);
27 
29  virtual ~DtNbcWeaponController() override;
30 
31 private:
34 
37 
38 public:
39  virtual const char* type() const override;
40 
41  virtual void preFirstTickInit() override;
42 
45  virtual const DtNbcWeaponControllerDescriptor* getDescriptor() const;
46 
48  static DtSimComponent* creator(const DtString & name, DtLocalObject* owner,
49  DtSimulationServices * simManager, DtComponentDescriptor* desc,
50  DtReaderWriterRegistry * parentRegistry);
51 
55  static DtReaderWriter* provideWeaponRange(void* controller);
56  static DtReaderWriter* provideContaminationRadius(void* controller);
57  static DtReaderWriter* provideAmmunitionPerAttack(void* controller);
59 
60 protected:
62 
63 };
64 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
DtScriptEnableController & operator=(const DtScriptEnableController &orig)
Not implemented.
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
This controller enables tasks and set commands that allow an entity to create NBC contaminated areas...
Definition: nbcWeaponController.h:20
Definition: readerWriterRegistry.h:39
const DtNbcWeaponControllerDescriptor * myNbcWeaponDesc
Definition: nbcWeaponController.h:61
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry)
This is called by the factory.
This controller enables specific lua scripts (by script ID) that would normally not be enabled for th...
Definition: scriptEnableController.h:23
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtNbcWeaponControllerDescriptor is a DtComponentDescriptor that has additional information needed for...
Definition: nbcWeaponControllerDescriptor.h:19
virtual const char * type() const override
This returns a string from compTypes.h, and identifies the type of component.
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)