Kigs Framework
Doc version 0.8
Open source multi purpose Rapid Application Development framework
|
#include <TravPath.h>
Classes | |
class | Way |
Manage one path part to a specific Drawable. More... | |
Public Types | |
enum | PathNeed |
used to know where to go in the path | |
Public Member Functions | |
TravPath () | |
constructor | |
void | Push (const Way &way) |
add a way to the path More... | |
virtual | ~TravPath () |
destructor More... | |
void | Clear () |
clear the TravPath | |
int | GetSize () |
destructor More... | |
PathNeed | ComputeNeeds (kstl::vector< int > ¤tway) |
compute what to do to go to the next mEntry More... | |
bool | IsNeedSameLevel (const kstl::vector< int > ¤tway) |
check if the level is the same More... | |
int | GotoWay (kstl::vector< int > ¤tway) |
get the index of the next way More... | |
void | PopWay (kstl::vector< int > ¤tway) |
pop current drawable and compute how many pops are needed to go to next one More... | |
Drawable * | GetDrawable () |
get the current drawable in path More... | |
Protected Attributes | |
kstl::vector< Way > | mPath |
the path | |
int | mNeedPop |
? | |
int | mCurrentPathIndex |
current index in the path | |
Class used to store pathes in the scenegraph and draw sorted objects following the right path.
|
virtual |
destructor
clear all entries in path
TravPath::PathNeed TravPath::ComputeNeeds | ( | kstl::vector< int > & | currentway | ) |
compute what to do to go to the next mEntry
currentway | : the current way |
|
inline |
get the current drawable in path
get the drawable
|
inline |
|
inline |
get the index of the next way
currentway | : the current way |
currentway | : the current way |
bool TravPath::IsNeedSameLevel | ( | const kstl::vector< int > & | currentway | ) |
check if the level is the same
currentway | : the current way |
void TravPath::PopWay | ( | kstl::vector< int > & | currentway | ) |
pop current drawable and compute how many pops are needed to go to next one
currentway | : the current way |
|
inline |
add a way to the path
way | : way to add |