Open source remastering of the Freespace 2 engine
CJumpNode Class Reference

#include <jumpnode.h>

Public Member Functions

 CJumpNode ()
 CJumpNode (vec3d *position)
 CJumpNode (CJumpNode &&other)
CJumpNodeoperator= (CJumpNode &&)
 ~CJumpNode ()
char * GetName ()
int GetModelNumber ()
int GetSCPObjectNumber ()
objectGetSCPObject ()
color GetColor ()
vec3dGetPosition ()
void SetAlphaColor (int r, int g, int b, int alpha)
void SetModel (char *model_name, bool show_polys=false)
void SetName (const char *new_name)
void SetVisibility (bool enabled)
bool IsHidden ()
bool IsColored ()
bool IsSpecialModel ()
void RenderDEPRECATED (vec3d *pos, vec3d *view_pos=NULL)
void Render (vec3d *pos, vec3d *view_pos=NULL)
void Render (draw_list *scene, vec3d *pos, vec3d *view_pos=NULL)

Detailed Description

Definition at line 31 of file jumpnode.h.

Constructor & Destructor Documentation

CJumpNode::CJumpNode ( )

Constructor for CJumpNode class, default

Definition at line 21 of file jumpnode.cpp.

CJumpNode::CJumpNode ( vec3d position)

Constructor for CJumpNode class, with world position argument

Definition at line 35 of file jumpnode.cpp.

CJumpNode::CJumpNode ( CJumpNode &&  other)

Definition at line 59 of file jumpnode.cpp.

CJumpNode::~CJumpNode ( )

Destructor for CJumpNode class

Definition at line 99 of file jumpnode.cpp.

Member Function Documentation

color CJumpNode::GetColor ( )
Color of jump node when rendered

Definition at line 150 of file jumpnode.cpp.

int CJumpNode::GetModelNumber ( )
Handle to model

Definition at line 125 of file jumpnode.cpp.

char * CJumpNode::GetName ( )
Name of jump node

Definition at line 117 of file jumpnode.cpp.

vec3d * CJumpNode::GetPosition ( )
World position of jump node

Definition at line 158 of file jumpnode.cpp.

object * CJumpNode::GetSCPObject ( )

Definition at line 141 of file jumpnode.cpp.

int CJumpNode::GetSCPObjectNumber ( )
Index into Objects[]

Definition at line 133 of file jumpnode.cpp.

bool CJumpNode::IsColored ( )
Is the jump node colored any other color than default white?

Definition at line 272 of file jumpnode.cpp.

bool CJumpNode::IsHidden ( )
Is the jump node hidden when rendering?

Definition at line 261 of file jumpnode.cpp.

bool CJumpNode::IsSpecialModel ( )
Is the jump node model set differently from the default one?

Definition at line 280 of file jumpnode.cpp.

CJumpNode & CJumpNode::operator= ( CJumpNode &&  other)

Definition at line 73 of file jumpnode.cpp.

void CJumpNode::Render ( vec3d pos,
vec3d view_pos = NULL 

Definition at line 347 of file jumpnode.cpp.

void CJumpNode::Render ( draw_list scene,
vec3d pos,
vec3d view_pos = NULL 

Definition at line 361 of file jumpnode.cpp.

void CJumpNode::RenderDEPRECATED ( vec3d pos,
vec3d view_pos = NULL 

Render jump node

posWorld position
view_posViewer's world position, can be NULL

Definition at line 291 of file jumpnode.cpp.

void CJumpNode::SetAlphaColor ( int  r,
int  g,
int  b,
int  alpha 

Set jump node alpha and color

rRed component
gGreen component
bBlue component
alphaAlpha component

Definition at line 173 of file jumpnode.cpp.

void CJumpNode::SetModel ( char *  model_name,
bool  show_polys = false 

Set jump node model to render

model_nameName of model file to load
show_polysWhether to render wireframe or not

Definition at line 190 of file jumpnode.cpp.

void CJumpNode::SetName ( const char *  new_name)

Set jump node name

new_nameNew name to set

Definition at line 224 of file jumpnode.cpp.

void CJumpNode::SetVisibility ( bool  enabled)

Set appearance, hidden or not

enabledVisibility to set

Definition at line 241 of file jumpnode.cpp.

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