/[projectaxis]/projectaxis/projectAxis/src/visual/panel/pgpanel_misnsel.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/visual/panel/pgpanel_misnsel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by leiavoia, Wed Aug 20 18:27:14 2003 UTC revision 1.2 by leiavoia, Sun Sep 14 01:05:00 2003 UTC
# Line 118  void PG_Panel_MisnSel::Refresh(Pod* p) { Line 118  void PG_Panel_MisnSel::Refresh(Pod* p) {
118                  mout[i]->SetText(s);                  mout[i]->SetText(s);
119                  }                  }
120    
121          if (IsHidden()==1) { this->Show(); }          //if (IsHidden()==1) { this->Show(); }
122            this->Show();
123    
124          }          }
125    
# Line 135  int PG_Panel_MisnSel::GetSlot() { return Line 136  int PG_Panel_MisnSel::GetSlot() { return
136    
137    
138  void PG_Panel_MisnSel::AnnotateMission(Mission* m, char s[]) {  void PG_Panel_MisnSel::AnnotateMission(Mission* m, char s[]) {
         char b[4]; // value buffer  
   
139          switch(m->GetType()) {          switch(m->GetType()) {
140                  case MISSION_IDLE:                  case MISSION_IDLE:
141                          strcat( s, "Idled!" );                          strcat( s, "Idled!" );
142                          break;                          break;
143                  case MISSION_PATROL:                  case MISSION_PATROL:
144                          strcat( s, "Patrol @ x" );                          strcat( s, "Patrol @ x" );
145                          strcat( s, gcvt(m->GetLocX(), 3, b) );                          strcat( s, rm->IntToChar( m->GetLocX() ).c_str() );
146                          strcat( s, ", y" );                          strcat( s, ", y" );
147                          strcat( s, gcvt(m->GetLocY(), 3, b) );                          strcat( s, rm->IntToChar( m->GetLocY() ).c_str() );
148                          strcat( s, ", radius " );                          strcat( s, ", radius " );
149                          strcat( s, gcvt(m->GetRad(), 3, b) );                          strcat( s, rm->IntToChar( m->GetRad() ).c_str() );
150                          break;                          break;
151                  case MISSION_MOVE:                  case MISSION_MOVE:
152                          strcat( s, "Moving to x" );                          strcat( s, "Moving to x" );
153                          strcat( s, gcvt(m->GetLocX(), 3, b) );                          strcat( s, rm->IntToChar( m->GetLocX() ).c_str() );
154                          strcat( s, ", y" );                          strcat( s, ", y" );
155                          strcat( s, gcvt(m->GetLocY(), 3, b) );                          strcat( s, rm->IntToChar( m->GetLocY() ).c_str() );
156                          break;                          break;
157                  case MISSION_HALT:                  case MISSION_HALT:
158                          strcat( s, "Halt" );                          strcat( s, "Halt" );

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26