00001 #ifndef __NICKTREE_H 00002 #define __NICKTREE_H 00003 00004 #include "../drawing/drawableobject.h" 00005 #include "../positions/position.h" 00006 00007 00008 class NickTree : public DrawableObject 00009 { 00010 public: 00011 NickTree(); 00012 ~NickTree(); 00013 00014 int setName(char *name); 00015 int setLocation(char *loc); 00016 char* getName(); 00017 char* getLocation(); 00018 char* getFullName(); 00019 00020 virtual Position* getPosition(); 00021 00022 virtual DrawableObject** draw(int &numToDraw) = 0; 00023 00024 virtual int addChild(NickTree *child, int connectionType); 00025 virtual int removeChild(NickTree *child); 00026 virtual int getNumChildren(); 00027 virtual NickTree** getChildren(); 00028 00029 virtual int addParent(NickTree *child, int connectionType); 00030 virtual int removeParent(NickTree *child); 00031 virtual int getNumParents(); 00032 virtual NickTree** getParents(); 00033 00034 private: 00035 char *name; 00036 char *location; 00037 char *fullName; 00038 00039 NickTree **children; 00040 int *childConnectionType; 00041 int numChildren; 00042 00043 NickTree **parents; 00044 int *parentConnectionType; 00045 int numParents; 00046 00047 Position* thePosition; 00048 00049 }; 00050 00051 #endif
1.3.6