WSF
WsfWeaponComponent.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFWEAPONCOMPONENT_HPP
13#define WSFWEAPONCOMPONENT_HPP
14
15#include "wsf_mil_export.h"
16
17#include "WsfComponent.hpp"
18class WsfPlatform;
20class WsfSimulation;
21class WsfWeapon;
22
30class WSF_MIL_EXPORT WsfWeaponComponent : public WsfComponentT<WsfWeapon>
31{
32public:
34
35 WsfWeapon* GetWeapon() const { return GetComponentParent(); }
36 WsfPlatform* GetPlatform() const;
37 WsfSimulation* GetSimulation() const;
39
47
52 virtual void TurnOn(double aSimTime) {}
53 virtual void TurnOff(double aSimTime) {}
55
61
62
63
67
68
69};
70
72template class WSF_MIL_EXPORT WsfSimpleComponentT<WsfWeaponComponent>;
74
75#endif
WsfSimpleComponentT< WsfWeaponComponent > WsfSimpleWeaponComponent
Definition WsfWeaponComponent.hpp:73
WsfComponentT()
Definition WsfComponent.hpp:124
ParentType * GetComponentParent() const
Definition WsfComponent.hpp:154
virtual bool Initialize(double aSimTime)
Definition WsfComponent.cpp:45
virtual bool PreInitialize(double aSimTime)
Definition WsfComponent.cpp:24
virtual bool Initialize2(double aSimTime)
Definition WsfComponent.cpp:63
virtual bool ProcessInput(UtInput &aInput)
Definition WsfComponent.cpp:100
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Definition WsfSimpleComponent.hpp:33
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfWeaponComponent.hpp:31
WsfWeapon * GetWeapon() const
Definition WsfWeaponComponent.hpp:35
virtual void TurnOff(double aSimTime)
Definition WsfWeaponComponent.hpp:53
virtual void TurnOn(double aSimTime)
Definition WsfWeaponComponent.hpp:52
Definition WsfWeapon.hpp:63
Copyrights Multiple, All Rights Reserved