Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7316 in orxonox.OLD for trunk/src/lib/shell/shell.cc


Ignore:
Timestamp:
Apr 17, 2006, 1:49:05 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Element2D uses Vector2D instead of Vector whenever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r7315 r7316  
    128128  EventHandler::getInstance()->withUNICODE(true);
    129129
    130   this->setRelCoorSoft2D(0, 0, 1, 5);
     130  this->setRelCoorSoft2D(0, 0, 5);
    131131
    132132  list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end();
     
    157157  EventHandler::getInstance()->popState();
    158158
    159   this->setRelCoorSoft2D(0, -(int)this->shellHeight, 1, 5);
     159  this->setRelCoorSoft2D(0, -(int)this->shellHeight, 5);
    160160
    161161  list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end();
     
    370370    lastText->setRelDir2D(-90);
    371371    lastText->setRelDirSoft2D(0, 20);
    372     lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector(-1000,0,0));
     372    lastText->setRelCoor2D(this->calculateLinePosition(0)- Vector2D(-1000,0));
    373373    lastText->setRelCoorSoft2D(this->calculateLinePosition(0),10);
    374374
     
    493493
    494494/**
    495  * calculates the position of a Buffer-Display Line
     495 * @brief calculates the position of a Buffer-Display Line
    496496 * @param lineNumber the lineNumber from the bottom to calculate the position from
    497497 * @returns the Position of the Line.
    498498 */
    499 Vector Shell::calculateLinePosition(unsigned int lineNumber)
    500 {
    501   return Vector(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize, 0);
    502 }
    503 
    504 
    505 
    506 /**
    507  * displays some nice output from the Shell
     499Vector2D Shell::calculateLinePosition(unsigned int lineNumber)
     500{
     501  return Vector2D(5, (this->textSize + this->lineSpacing)*(this->bufferDisplaySize - lineNumber - 2) + this->textSize);
     502}
     503
     504
     505
     506/**
     507 * @brief displays some nice output from the Shell
    508508 */
    509509void Shell::debug() const
Note: See TracChangeset for help on using the changeset viewer.