[4744] | 1 | /* |
---|
[1853] | 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
[1855] | 10 | |
---|
| 11 | ### File Specific: |
---|
[5068] | 12 | main-programmer: Benjamin Grauer |
---|
[1855] | 13 | co-programmer: ... |
---|
[1853] | 14 | */ |
---|
| 15 | |
---|
[3955] | 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
[1853] | 17 | |
---|
[5068] | 18 | #include "shell.h" |
---|
[1853] | 19 | |
---|
[1856] | 20 | using namespace std; |
---|
[1853] | 21 | |
---|
[1856] | 22 | |
---|
[3245] | 23 | /** |
---|
[4838] | 24 | * standard constructor |
---|
[5068] | 25 | */ |
---|
| 26 | Shell::Shell () |
---|
[3365] | 27 | { |
---|
[5068] | 28 | this->setClassID(CL_SHELL, "Shell"); |
---|
| 29 | } |
---|
[4320] | 30 | |
---|
| 31 | |
---|
[5068] | 32 | Shell* Shell::singletonRef = NULL; |
---|
[1853] | 33 | |
---|
[3245] | 34 | /** |
---|
[4838] | 35 | * standard deconstructor |
---|
[5068] | 36 | */ |
---|
| 37 | Shell::~Shell () |
---|
[3543] | 38 | { |
---|
| 39 | // delete what has to be deleted here |
---|
[5068] | 40 | |
---|
| 41 | Shell::singletonRef = NULL; |
---|
[3543] | 42 | } |
---|
[5068] | 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | void setBufferDisplaySize(unsigned int bufferDisplaySize); |
---|
| 48 | |
---|
| 49 | /** |
---|
| 50 | * deletes all the Buffers |
---|
| 51 | */ |
---|
| 52 | void Shell::flushBuffers() |
---|
| 53 | { |
---|
| 54 | |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | /** |
---|
| 58 | * adds a new Line to the List of Buffers |
---|
| 59 | * @param line the Line as in the first argument in printf |
---|
| 60 | * @param args the arguments as a va_list |
---|
| 61 | */ |
---|
| 62 | void Shell::addBufferLine(const char* line, va_list args) |
---|
| 63 | { |
---|
| 64 | } |
---|
| 65 | |
---|
| 66 | /** |
---|
| 67 | * moves the buffer around lineCount lines upwards (negative values move down) |
---|
| 68 | * @param lineCount the Count of lines to move upwards |
---|
| 69 | */ |
---|
| 70 | void Shell::moveBuffer(int lineCount) |
---|
| 71 | { |
---|
| 72 | } |
---|
| 73 | |
---|
| 74 | /** |
---|
| 75 | * @param lineNumber the n-th line from the bottom |
---|
| 76 | * @returns the Buffer at Line lineNumber |
---|
| 77 | */ |
---|
| 78 | const char* Shell::getBufferLine(unsigned int lineNumber) |
---|
| 79 | { |
---|
| 80 | } |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | /** |
---|
| 84 | * deletes the InputLine |
---|
| 85 | */ |
---|
| 86 | void Shell::flushInputLine() |
---|
| 87 | { |
---|
| 88 | } |
---|
| 89 | |
---|
| 90 | /** |
---|
| 91 | * adds one character to the inputLine |
---|
| 92 | * @param character the character to add to the inputLine |
---|
| 93 | */ |
---|
| 94 | void Shell::addCharacter(char character) |
---|
| 95 | { |
---|
| 96 | } |
---|
| 97 | |
---|
| 98 | /** |
---|
| 99 | * adds multiple Characters to thr inputLine |
---|
| 100 | * @param characters a '\0' terminated char-array to add to the InputLine |
---|
| 101 | */ |
---|
| 102 | void Shell::addCharacters(const char* characters) |
---|
| 103 | { |
---|
| 104 | } |
---|
| 105 | |
---|
| 106 | /** |
---|
| 107 | * removes characterCount characters from the InputLine |
---|
| 108 | * @param characterCount the count of Characters to remove from the input Line |
---|
| 109 | */ |
---|
| 110 | void Shell::removeCharacters(unsigned int characterCount) |
---|
| 111 | { |
---|
| 112 | } |
---|
| 113 | |
---|
[5069] | 114 | /** |
---|
| 115 | * listens for some event |
---|
| 116 | * @param event the Event happened |
---|
| 117 | */ |
---|
| 118 | void Shell::process(const Event &event) |
---|
| 119 | { |
---|
| 120 | // if (event.type) |
---|
[5068] | 121 | |
---|
[5069] | 122 | } |
---|
| 123 | |
---|
[5068] | 124 | /** |
---|
| 125 | * ticks the Shell for dt Seconds |
---|
| 126 | * @param dt the elapsed time since the last tick(); |
---|
| 127 | */ |
---|
| 128 | void Shell::tick(float dt) |
---|
| 129 | { |
---|
| 130 | } |
---|
| 131 | |
---|
| 132 | /** |
---|
| 133 | * displays the Shell |
---|
| 134 | */ |
---|
| 135 | void Shell::draw() const |
---|
| 136 | { |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | |
---|
| 140 | /** |
---|
| 141 | * autocompletes the Shell's inputLine |
---|
| 142 | * @returns true, if a result was found, false otherwise |
---|
| 143 | */ |
---|
| 144 | bool Shell::autoComplete() |
---|
| 145 | { |
---|
| 146 | |
---|
| 147 | } |
---|
| 148 | |
---|
| 149 | /** |
---|
| 150 | * displays some nice output from the Shell |
---|
| 151 | */ |
---|
| 152 | void Shell::debug() const |
---|
| 153 | { |
---|
| 154 | |
---|
| 155 | } |
---|