Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
systemdrawnode Class Reference

Public Member Functions

unsigned getIndex () const
 
 systemdrawnode (int type, float size, float x, float y, std::string source, unsigned index, navscreenoccupied *so, bool moused, GFXColor race)
 
 systemdrawnode ()
 
void draw (bool mouseover=false, bool willclick=false)
 

Friends

bool operator< (const systemdrawnode &a, const systemdrawnode &b)
 
bool operator== (const systemdrawnode &a, const systemdrawnode &b)
 

Detailed Description

Definition at line 159 of file drawgalaxy.cpp.

Constructor & Destructor Documentation

systemdrawnode::systemdrawnode ( int  type,
float  size,
float  x,
float  y,
std::string  source,
unsigned  index,
navscreenoccupied so,
bool  moused,
GFXColor  race 
)
inline

Definition at line 187 of file drawgalaxy.cpp.

196  : type( type )
197  , size( size )
198  , x( x )
199  , y( y )
200  , index( index )
201  , source( source )
202  , moused( moused )
203  , color( GetSystemColor( source ) )
204  , race( race )
205  , screenoccupation( so )
206  {
207  }
systemdrawnode::systemdrawnode ( )
inline

Definition at line 208 of file drawgalaxy.cpp.

210  , x( 0 )
211  , y( 0 )
212  , index( 0 )
213  , source()
214  , moused( false )
215  , color( 'v' )
216  , race( GrayColor )
217  , screenoccupation( NULL )
218  {
219  }

Member Function Documentation

void systemdrawnode::draw ( bool  mouseover = false,
bool  willclick = false 
)
inline

Definition at line 220 of file drawgalaxy.cpp.

References DrawNode().

221  {
222  DrawNode( type, size, x, y, source, screenoccupation, moused, race, mouseover, willclick );
223  }
unsigned systemdrawnode::getIndex ( ) const
inline

Definition at line 175 of file drawgalaxy.cpp.

176  {
177  return index;
178  }

Friends And Related Function Documentation

bool operator< ( const systemdrawnode a,
const systemdrawnode b 
)
friend

Definition at line 179 of file drawgalaxy.cpp.

180  {
181  return a.source < b.source;
182  }
bool operator== ( const systemdrawnode a,
const systemdrawnode b 
)
friend

Definition at line 183 of file drawgalaxy.cpp.

184  {
185  return a.source == b.source;
186  }

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