Logo Search packages:      
Sourcecode: fillets-ng version File versions

LevelNode Class Reference

#include <LevelNode.h>

Inheritance diagram for LevelNode:

NoCopy

List of all members.


Detailed Description

Node on the map.

Definition at line 17 of file LevelNode.h.


Public Types

enum  eState { STATE_HIDDEN, STATE_FAR, STATE_OPEN, STATE_SOLVED }

Public Member Functions

void addChild (LevelNode *new_node)
bool areAllSolved () const
void bestSolution (int moves, const std::string &author)
LevelcreateLevel () const
void drawPath (const NodeDrawer *drawer) const
LevelNodefindNamed (const std::string &codename)
LevelNodefindSelected (const V2 &cursor)
std::string getBestAuthor () const
int getBestMoves () const
std::string getCodename () const
int getDepth () const
V2 getLoc () const
std::string getPoster () const
eState getState () const
bool isLeaf () const
 LevelNode (const std::string &codename, const Path &datafile, const V2 &loc, const std::string &poster="")
void setDepth (int depth)
void setState (eState state)
virtual ~LevelNode ()

Private Types

typedef std::vector< class
LevelNode * > 
t_children

Private Member Functions

bool isUnder (const V2 &cursor) const

Private Attributes

std::string m_bestAuthor
int m_bestMoves
t_children m_children
std::string m_codename
Path m_datafile
int m_depth
V2 m_loc
std::string m_poster
eState m_state

Static Private Attributes

static const int DOT_RADIUS = 13

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

Generated by  Doxygen 1.6.0   Back to index