GUInity
Public Member Functions | Public Attributes | List of all members
PlayerScript Class Reference

#include <PlayerScript.hpp>

Inheritance diagram for PlayerScript:
ScriptComponent Component

Public Member Functions

virtual void awake () override
 
virtual void tick (float deltaSecods) override
 
 PlayerScript ()
 
void applyDrag (float deltaSeconds)
 
virtual void onCollision (Actor *actor) override
 
virtual void onTrigger (Actor *actor) override
 
virtual shared_ptr< Componentclone () override
 
- Public Member Functions inherited from ScriptComponent
 ScriptComponent ()
 
virtual ~ScriptComponent ()
 
virtual void init ()
 
virtual void destroy ()
 
virtual shared_ptr< ComponentDescriptiongetComponentDescription () override
 
virtual void deserialize (shared_ptr< ComponentDescription > desc) override
 
- Public Member Functions inherited from Component
 Component ()
 
virtual ~Component ()
 
virtual void setActive (bool isActive)
 
shared_ptr< ActorgetActor ()
 
void setActor (weak_ptr< Actor > actor)
 

Public Attributes

float moveSpeed
 
float rotateSpeed
 
glm::vec3 velocity
 
weak_ptr< Actoractor
 
shared_ptr< MaterialdefaultMaterialRef
 
shared_ptr< MeshobjMeshRef
 
weak_ptr< ActorbulletSpawnPoint
 

Additional Inherited Members

- Protected Member Functions inherited from Component
void setCopyMode (bool initWithData)
 
- Protected Attributes inherited from Component
bool initWithData
 
bool isActive
 

Detailed Description

Your documentation comment will go here

Constructor & Destructor Documentation

PlayerScript::PlayerScript ( )

Your documentation comment will go here

Member Function Documentation

void PlayerScript::awake ( )
overridevirtual

Component awake override

Reimplemented from ScriptComponent.

shared_ptr< Component > PlayerScript::clone ( )
overridevirtual

Clones current component (Prototype Design Pattern)

Returns
shared_ptr to cloned ScriptComponent Component

Reimplemented from ScriptComponent.

void PlayerScript::onCollision ( Actor actor)
overridevirtual

Callback function called when a collision occurs

Reimplemented from ScriptComponent.

void PlayerScript::onTrigger ( Actor actor)
overridevirtual

Callback function called when a trigger collision occurs

Reimplemented from ScriptComponent.

void PlayerScript::tick ( float  deltaSecods)
overridevirtual

Component tick override

Parameters
[in]deltaSecondslast frame durations

Reimplemented from ScriptComponent.


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