- Timestamp:
- Aug 19, 2005, 1:52:25 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/list.h
r5073 r5074 131 131 132 132 void add(T* entity); 133 void add First(T* entity);133 void addAtBeginning(T* entity); //!< @todo This should be made with an ENUM 134 134 void remove(T* entity); 135 135 void removeLast(); … … 212 212 */ 213 213 template<class T> 214 inline void tList<T>::add First(T* entity)214 inline void tList<T>::addAtBeginning(T* entity) 215 215 { 216 216 if( unlikely(entity == NULL)) return; -
trunk/src/orxonox.cc
r5072 r5074 150 150 if( initInput() == -1) return -1; 151 151 if( initNetworking () == -1) return -1; 152 if( initMisc () == -1) return -1; 152 153 153 154 return 0; … … 249 250 250 251 CDEngine::getInstance(); 252 return 0; 253 } 254 255 /** 256 * initializes miscelaneous features 257 * @return -1 on failure 258 */ 259 int Orxonox::initMisc() 260 { 251 261 Shell::getInstance(); 252 253 262 return 0; 254 263 } -
trunk/src/orxonox.h
r5024 r5074 34 34 void parseIniFile(const char* fileName); 35 35 36 int initResources (); 36 37 int initVideo (); 37 38 int initSound (); 38 39 int initInput (); 39 40 int initNetworking (); 40 int init Resources();41 int initMisc (); 41 42 42 43 const char* getConfigFile (); -
trunk/src/util/shell.cc
r5073 r5074 35 35 this->buffer = new tList<char>; 36 36 37 //this->bufferSize = 0; 38 //this->bufferDisplaySize = 0; 37 39 this->setBufferSize(100); 38 40 this->setBufferDisplaySize(5); 39 } 40 41 42 43 this->addBufferLine("asjflksjdvklasmv", NULL); 44 TextEngine::getInstance()->debug(); 45 //exit(-1); 46 } 41 47 42 48 Shell* Shell::singletonRef = NULL; … … 52 58 } 53 59 60 /** 61 * sets The count of Lines to display in the buffer. 62 * @param bufferDisplaySize the count of lines to display in the Shell-Buffer. 63 */ 54 64 void Shell::setBufferDisplaySize(unsigned int bufferDisplaySize) 55 65 { … … 64 74 { 65 75 Text* newText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0); 76 newText->setAlignment(TEXT_ALIGN_LEFT); 77 newText->setPosition2D(5, 5); 78 newText->setText(""); 66 79 this->bufferText->add(newText); 67 80 // add the Text here … … 115 128 strcpy(newLine, tmp); 116 129 117 this->buffer->add (newLine);130 this->buffer->addAtBeginning(newLine); 118 131 119 132 if (this->buffer->getSize() > this->bufferSize) … … 123 136 } 124 137 138 this->bufferText->firstElement()->setText(newLine); 125 139 126 140 } … … 230 244 * @param dt the elapsed time since the last tick(); 231 245 */ 232 void Shell::tick(float dt)233 {234 }246 //void Shell::tick(float dt) 247 //{ 248 //} 235 249 236 250 /** -
trunk/src/util/shell.h
r5072 r5074 59 59 60 60 // Element2D-functions 61 void tick(float dt);61 // void tick(float dt); 62 62 virtual void draw() const; 63 63
Note: See TracChangeset
for help on using the changeset viewer.