Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Shields Class Reference

#include <Shields.h>

Collaboration diagram for Shields:
Collaboration graph
[legend]

Classes

struct  Hits
 
struct  Shield
 

Public Member Functions

 Shields (SceneGraph::Model *)
 
virtual ~Shields ()
 
virtual void SaveToJson (Json &jsonObj)
 
virtual void LoadFromJson (const Json &jsonObj)
 
void SetEnabled (const bool on)
 
void Update (const float coolDown, const float shieldStrength)
 
void SetColor (const Color3ub &)
 
void AddHit (const vector3d &hitPos)
 
SceneGraph::StaticGeometryGetFirstShieldMesh ()
 

Static Public Member Functions

static void Init (Graphics::Renderer *)
 
static void ReparentShieldNodes (SceneGraph::Model *)
 
static void Uninit ()
 

Protected Attributes

std::deque< Hitsm_hits
 
std::vector< Shieldm_shields
 
RefCountedPtr< Graphics::Materialm_shieldMaterial
 
bool m_enabled
 

Static Protected Attributes

static bool s_initialised = false
 

Constructor & Destructor Documentation

◆ Shields()

Shields::Shields ( SceneGraph::Model model)
Here is the call graph for this function:

◆ ~Shields()

Shields::~Shields ( )
virtual

Member Function Documentation

◆ AddHit()

void Shields::AddHit ( const vector3d hitPos)

◆ GetFirstShieldMesh()

SceneGraph::StaticGeometry * Shields::GetFirstShieldMesh ( )

◆ Init()

void Shields::Init ( Graphics::Renderer renderer)
static
Here is the call graph for this function:

◆ LoadFromJson()

void Shields::LoadFromJson ( const Json jsonObj)
virtual

◆ ReparentShieldNodes()

void Shields::ReparentShieldNodes ( SceneGraph::Model model)
static
Here is the call graph for this function:

◆ SaveToJson()

void Shields::SaveToJson ( Json jsonObj)
virtual

◆ SetColor()

void Shields::SetColor ( const Color3ub inCol)

◆ SetEnabled()

void Shields::SetEnabled ( const bool  on)
inline

◆ Uninit()

void Shields::Uninit ( )
static

◆ Update()

void Shields::Update ( const float  coolDown,
const float  shieldStrength 
)

Member Data Documentation

◆ m_enabled

bool Shields::m_enabled
protected

◆ m_hits

std::deque<Hits> Shields::m_hits
protected

◆ m_shieldMaterial

RefCountedPtr<Graphics::Material> Shields::m_shieldMaterial
protected

◆ m_shields

std::vector<Shield> Shields::m_shields
protected

◆ s_initialised

bool Shields::s_initialised = false
staticprotected

The documentation for this class was generated from the following files: