Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7745 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
May 20, 2006, 6:18:43 PM (19 years ago)
Author:
bensch
Message:

trunk: graphical representation of the move in the Shell

File:
1 edited

Legend:

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

    r7744 r7745  
    384384
    385385    // redisplay the buffers
     386    std::list<MultiLineText*>::iterator textIt;
     387
     388    // Give a Graphical Representation that no move is possible.
     389    if (moves == 0)
     390    {
     391      int linePos = -1;
     392      for (textIt = this->bufferText.begin(); textIt != this->bufferText.end(); ++textIt)
     393      {
     394        linePos += (*textIt)->getLineCount();
     395        (*textIt)->setRelCoor2D(this->calculateLinePosition(linePos)+ Vector2D(20,0));
     396        (*textIt)->setRelCoorSoft2D(this->calculateLinePosition(linePos), 10);
     397      }
     398      return;
     399    }
     400
     401    // Move all the Lines.
    386402    int linePos = moves;
    387403    std::list<std::string>::const_iterator it = this->bufferIterator;
    388     std::list<MultiLineText*>::iterator textIt;
    389404    for (textIt = this->bufferText.begin(); textIt != this->bufferText.end(); ++textIt, ++it)
    390405    {
Note: See TracChangeset for help on using the changeset viewer.