PCG Lib
Library for procedural content generation
Public Member Functions | Public Attributes | List of all members
skr::pcg::TargetMovement Class Reference

specifies parameters how a target can move during gameplay More...

#include <Target.h>

Public Member Functions

 TargetMovement ()
 default constructor sets axis to (0,0,0) (no movement) and extend to default More...
 
 TargetMovement (Vec3 a, float e)
 constructor More...
 
 TargetMovement (uint8_t dir, float e)
 constructor More...
 

Public Attributes

Vec3 axis
 axis on which target can move More...
 
float extend
 maximum length a target can move in one direction More...
 

Detailed Description

specifies parameters how a target can move during gameplay

Constructor & Destructor Documentation

◆ TargetMovement() [1/3]

skr::pcg::TargetMovement::TargetMovement ( )
inline

default constructor sets axis to (0,0,0) (no movement) and extend to default

◆ TargetMovement() [2/3]

skr::pcg::TargetMovement::TargetMovement ( Vec3  a,
float  e 
)
inline

constructor

Parameters
aaxis to move on
eextend to move

◆ TargetMovement() [3/3]

skr::pcg::TargetMovement::TargetMovement ( uint8_t  dir,
float  e 
)
inline

constructor

Parameters
dirsets direction: 0 = axis; 1 = y-axis; 2 = z-axis
eextend to move

Member Data Documentation

◆ axis

Vec3 skr::pcg::TargetMovement::axis

axis on which target can move

◆ extend

float skr::pcg::TargetMovement::extend

maximum length a target can move in one direction


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