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

specifies are target in a level to hit More...

#include <Target.h>

Public Member Functions

 Target (TargetMovement mov=TargetMovement())
 default constructor More...
 
 Target (Vec3 pos, TargetMovement mov=TargetMovement())
 constructor More...
 
 Target (Vec3 pos, float w, float h, float l, TargetMovement mov=TargetMovement())
 constructor More...
 
 Target (Vec3 pos, Vec3 size, TargetMovement mov=TargetMovement())
 constructor More...
 

Public Attributes

Vec3 _position
 position More...
 
float _width
 extend of the target in x-axis More...
 
float _height
 extend of the target in y-axis More...
 
float _length
 extend of the target in z-axis More...
 
TargetMovement _movement
 target movement More...
 

Detailed Description

specifies are target in a level to hit

Constructor & Destructor Documentation

◆ Target() [1/4]

skr::pcg::Target::Target ( TargetMovement  mov = TargetMovement())

default constructor

Parameters
movtarget movement, default uses its default constructor

◆ Target() [2/4]

skr::pcg::Target::Target ( Vec3  pos,
TargetMovement  mov = TargetMovement() 
)

constructor

Parameters
posposition of the target
movtarget movement, default uses its default constructor

◆ Target() [3/4]

skr::pcg::Target::Target ( Vec3  pos,
float  w,
float  h,
float  l,
TargetMovement  mov = TargetMovement() 
)

constructor

Parameters
posposition of the target
wwidth
hheight
llength
movtarget movement, default uses its default constructor

◆ Target() [4/4]

skr::pcg::Target::Target ( Vec3  pos,
Vec3  size,
TargetMovement  mov = TargetMovement() 
)

constructor

Parameters
posposition of the target
sizewidth, height, length
movtarget movement, default uses its default constructor

Member Data Documentation

◆ _height

float skr::pcg::Target::_height

extend of the target in y-axis

◆ _length

float skr::pcg::Target::_length

extend of the target in z-axis

◆ _movement

TargetMovement skr::pcg::Target::_movement

target movement

◆ _position

Vec3 skr::pcg::Target::_position

position

◆ _width

float skr::pcg::Target::_width

extend of the target in x-axis


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