Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9863 in orxonox.OLD for branches/new_class_id/src


Ignore:
Timestamp:
Oct 2, 2006, 4:53:38 PM (18 years ago)
Author:
bensch
Message:

less debug output

Location:
branches/new_class_id/src
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/collision_reaction/collision_handle.h

    r9715 r9863  
    6464
    6565    std::vector<Collision*>       collisionList;           //!< a list full of collisions
     66    /// TODO Take a std::set here!
    6667    std::vector<ClassID>          targetList;              //!< a list of target classes for filtering @TODO TAKE SET INSTEAD OF VECTOR HERE
    6768
  • branches/new_class_id/src/lib/graphics/importer/material.cc

    r9833 r9863  
    261261}
    262262
    263 
    264 
    265 /**
    266  * @brief Adds a Texture Path to the List of already existing Paths
    267  * @param pathName The Path to add.
    268 */
    269 void Material::addTexturePath(const std::string& pathName)
    270 {
    271   printf("HUPS\n");
    272   //ResourceManager::getInstance()->addImageDir(pathName);
    273 }
    274263
    275264/**
  • branches/new_class_id/src/lib/graphics/importer/material.h

    r9823 r9863  
    6767  const Texture& diffuseTexture(unsigned int i = 0) const { return this->textures[i]; };
    6868
    69   static void addTexturePath(const std::string& pathName);
    70 
    7169  static const std::string& blendFuncToString(GLenum blendFunc);
    7270  static GLenum stringToBlendFunc(const std::string& blendFuncString);
  • branches/new_class_id/src/lib/graphics/importer/md2/md2Model.cc

    r9828 r9863  
    9292  rebuildInfo();
    9393
    94   this->debug();
     94  //this->debug();
    9595}
    9696
  • branches/new_class_id/src/lib/graphics/importer/objModel.cc

    r9831 r9863  
    1919
    2020#include <string.h>
     21#include "loading/resource_manager.h"
    2122
    2223#define PARSELINELENGTH 8192
     
    7677  else
    7778    this->objPath = "./";
    78   Material::addTexturePath(this->objPath);
     79  Resources::ResourceManager::getInstance()->addResourcePath("Texture", this->objPath);
    7980
    8081  this->readFromObjFile (fileName);
  • branches/new_class_id/src/lib/graphics/text_engine/resource_font.cc

    r9854 r9863  
    2121    PRINTF(5)("NOT FOUND FONT: %s\n", fontName.c_str());
    2222    std::string fileName = this->Resource::locateFile(fontName);
    23 
    24     printf("FONTFILE %s TO %s\n", fontName.c_str(), fileName.c_str());
    2523
    2624    this->Font::loadFontFromTTF(fileName, renderSize);
  • branches/new_class_id/src/orxonox.cc

    r9861 r9863  
    570570  }
    571571
    572   printf("finished inizialisation\n");
     572  PRINTF(5)("finished inizialisation\n");
    573573  orx->start();
    574574
  • branches/new_class_id/src/story_entities/game_world.cc

    r9833 r9863  
    151151
    152152
    153   PRINTF(0)("Loading the GameWorld\n");
     153  PRINTF(4)("Loading the GameWorld\n");
    154154
    155155  PRINTF(3)("> Loading world: '%s'\n", getLoadFile().c_str());
     
    336336  }
    337337
    338   PRINTF(0)("GameWorld::mainLoop() - Exiting the main loop\n");
     338  PRINTF(4)("GameWorld::mainLoop() - Exiting the main loop\n");
    339339}
    340340
  • branches/new_class_id/src/story_entities/menu/game_menu.cc

    r9856 r9863  
    199199        {
    200200
    201           printf("%s\n", se->getMenuScreenshoot().c_str());
     201          PRINTF(3)("Load image %s\n", se->getMenuScreenshoot().c_str());
    202202          OrxGui::GLGuiImageButton* button = new OrxGui::GLGuiImageButton(se->getName(), se->getStoryID(), se->getMenuScreenshoot(), image);
    203203          button->startLevel.connect(this, &GameMenu::startLevel);
  • branches/new_class_id/src/story_entities/menu/glgui_imagebutton.cc

    r9406 r9863  
    1414*/
    1515
    16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_SHELL
    1716
    1817#include "glgui_imagebutton.h"
     
    4544  void GLGuiImageButton::receivedFocus()
    4645  {
    47     printf("%s:: %s\n", this->label().c_str(), this->imageName.c_str());
     46    PRINTF(4)("%s:: %s\n", this->label().c_str(), this->imageName.c_str());
    4847
    4948    this->image->loadImageFromFile(this->imageName);
  • branches/new_class_id/src/util/hud.cc

    r9715 r9863  
    185185  if (State::getPlayer() && State::getPlayer()->getPlayable() && State::getObjectManager())
    186186  {
    187     printf("UPDATING RADAR\n");
     187    PRINTF(4)("UPDATING RADAR\n");
    188188    this->_radar->setCenterNode(State::getPlayer()->getPlayable());
    189189    this->_radar->addEntityList(&State::getObjectManager()->getEntityList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0));
  • branches/new_class_id/src/world_entities/skydome.cc

    r9833 r9863  
    4444void Skydome::init()
    4545{
    46   PRINTF(0)("Skydome init\n");
     46  PRINTF(4)("Skydome init\n");
    4747
    4848  this->registerObject(this, Skydome::_objectList);
     
    6363Skydome::~Skydome()
    6464{
    65   PRINTF(0)("Deleting Skydome\n");
     65  PRINTF(4)("Deleting Skydome\n");
    6666
    6767  if (glIsTexture(texture))
  • branches/new_class_id/src/world_entities/weapons/aim.cc

    r9715 r9863  
    5151Aim::~Aim ()
    5252{
    53 /*  if (this->text != NULL)
    54     delete this->text;*/
     53  /*  if (this->text != NULL)
     54      delete this->text;*/
    5555}
    5656
     
    8080
    8181
    82 /*  this->text = new Text();
    83   this->text->setLayer(this->getLayer());
    84   this->text->setParent2D(this);
    85   this->text->setRelCoor2D(10, -50);
    86   this->text->setParentMode2D(E2D_PARENT_MOVEMENT);
    87   this->text->setText("Testing");*/
     82  /*  this->text = new Text();
     83    this->text->setLayer(this->getLayer());
     84    this->text->setParent2D(this);
     85    this->text->setRelCoor2D(10, -50);
     86    this->text->setParentMode2D(E2D_PARENT_MOVEMENT);
     87    this->text->setText("Testing");*/
    8888}
    8989
     
    9393
    9494  LoadParam(root, "texture", this, Aim, setTexture)
    95       .describe("the texture-file to load onto the Aim");
     95  .describe("the texture-file to load onto the Aim");
    9696
    9797  LoadParam(root, "size", this, Aim, setSize)
    98       .describe("the size of the Aim in Pixels");
     98  .describe("the size of the Aim in Pixels");
    9999
    100100  LoadParam(root, "rotation-speed", this, Aim, setRotationSpeed)
    101       .describe("the Speed with which the Aim should rotate");
     101  .describe("the Speed with which the Aim should rotate");
    102102
    103103  LoadParam(root, "target-group", this, Aim, setTargetGroupS);
     
    118118      //if (this->getParent() != (*entity))
    119119      {
    120         printf("found target::: %d %s::%s\n", (*entity)->getOMListNumber(), (*entity)->getClassCName(), (*entity)->getCName());
     120        //        printf("found target::: %d %s::%s\n", (*entity)->getOMListNumber(), (*entity)->getClassCName(), (*entity)->getCName());
    121121        this->anim->replay();
    122122        this->setParentSoft(*entity, 5);
     
    126126  }
    127127
    128    //if no target found:
    129    this->setParent(PNode::getNullParent());
     128  //if no target found:
     129  this->setParent(PNode::getNullParent());
    130130}
    131131
     
    166166  this->shiftDir2D(dt * rotationSpeed);
    167167
    168 //   char outputText[100];
    169 //   sprintf(outputText, "%s - distance: %f\n", this->getParent()->getName(), (this->source->getAbsCoor() - this->getAbsCoor()).len());
    170 //   this->text->setText(outputText);
    171 
    172 
    173 //  if (this->source->getAbsCoor().x > this->getAbsCoor().x )
     168  //   char outputText[100];
     169  //   sprintf(outputText, "%s - distance: %f\n", this->getParent()->getName(), (this->source->getAbsCoor() - this->getAbsCoor()).len());
     170  //   this->text->setText(outputText);
     171
     172
     173  //  if (this->source->getAbsCoor().x > this->getAbsCoor().x )
    174174  diffVec = ( this->getAbsCoor() - this->source->getAbsCoor() );
    175 //only look for target if the aim hasn`t locked a target yet or if the actual target is out of range
    176    if(this->getParent() == PNode::getNullParent() ||
     175  //only look for target if the aim hasn`t locked a target yet or if the actual target is out of range
     176  if(this->getParent() == PNode::getNullParent() ||
    177177      diffVec.len() > range )// ||
    178      //( acos( (this->source->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) ) > angle))
    179     {
    180      this->setParentSoft(PNode::getNullParent(),5);
    181      this->searchTarget();
    182     }
    183 
    184 //   float z = 0.0f;
    185 //   glReadPixels ((int)this->getAbsCoor2D().x,
    186 //                  GraphicsEngine::getInstance()->getResolutionY()-(int)this->getAbsCoor2D().y-1,
    187 //                  1,
    188 //                  1,
    189 //                  GL_DEPTH_COMPONENT,
    190 //                  GL_FLOAT,
    191 //                  &z);
    192 //
    193 //
    194 //   GLdouble objX=.0, objY=.0, objZ=.0;
    195 //   gluUnProject(this->getAbsCoor2D().x,
    196 //                GraphicsEngine::getInstance()->getResolutionY()-this->getAbsCoor2D().y-1,
    197 //                .99,  // z
    198 //                GraphicsEngine::modMat,
    199 //                GraphicsEngine::projMat,
    200 //                GraphicsEngine::viewPort,
    201 //                &objX,
    202 //                &objY,
    203 //                &objZ );
    204 //aa
    205 //   this->setAbsCoor(objX, objY, objZ);
     178    //( acos( (this->source->getAbsDirX()).dot(diffVec)/(diffVec.len() * (this->source->getAbsDirX()).len() ) ) > angle))
     179  {
     180    this->setParentSoft(PNode::getNullParent(),5);
     181    this->searchTarget();
     182  }
     183
     184  //   float z = 0.0f;
     185  //   glReadPixels ((int)this->getAbsCoor2D().x,
     186  //                  GraphicsEngine::getInstance()->getResolutionY()-(int)this->getAbsCoor2D().y-1,
     187  //                  1,
     188  //                  1,
     189  //                  GL_DEPTH_COMPONENT,
     190  //                  GL_FLOAT,
     191  //                  &z);
     192  //
     193  //
     194  //   GLdouble objX=.0, objY=.0, objZ=.0;
     195  //   gluUnProject(this->getAbsCoor2D().x,
     196  //                GraphicsEngine::getInstance()->getResolutionY()-this->getAbsCoor2D().y-1,
     197  //                .99,  // z
     198  //                GraphicsEngine::modMat,
     199  //                GraphicsEngine::projMat,
     200  //                GraphicsEngine::viewPort,
     201  //                &objX,
     202  //                &objY,
     203  //                &objZ );
     204  //aa
     205  //   this->setAbsCoor(objX, objY, objZ);
    206206}
    207207
     
    212212{
    213213
    214  if( this->getParent() != PNode::getNullParent() )
     214  if( this->getParent() != PNode::getNullParent() )
    215215  {
    216   glPushMatrix();
    217   glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0);
    218 
    219   glRotatef(this->getAbsDir2D(), 0,0,1);
    220   this->material.select();
    221   glBegin(GL_TRIANGLE_STRIP);
    222   glTexCoord2f(0, 0);
    223   glVertex2f(-this->getSizeX2D(), -this->getSizeY2D());
    224   glTexCoord2f(1, 0);
    225   glVertex2f(this->getSizeX2D(), -this->getSizeY2D());
    226   glTexCoord2f(0, 1);
    227   glVertex2f(-this->getSizeX2D(), this->getSizeY2D());
    228   glTexCoord2f(1, 1);
    229   glVertex2f(this->getSizeX2D(), this->getSizeY2D());
    230   glEnd();
    231   glPopMatrix();
     216    glPushMatrix();
     217    glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0);
     218
     219    glRotatef(this->getAbsDir2D(), 0,0,1);
     220    this->material.select();
     221    glBegin(GL_TRIANGLE_STRIP);
     222    glTexCoord2f(0, 0);
     223    glVertex2f(-this->getSizeX2D(), -this->getSizeY2D());
     224    glTexCoord2f(1, 0);
     225    glVertex2f(this->getSizeX2D(), -this->getSizeY2D());
     226    glTexCoord2f(0, 1);
     227    glVertex2f(-this->getSizeX2D(), this->getSizeY2D());
     228    glTexCoord2f(1, 1);
     229    glVertex2f(this->getSizeX2D(), this->getSizeY2D());
     230    glEnd();
     231    glPopMatrix();
    232232  }
    233233
  • branches/new_class_id/src/world_entities/weapons/weapon_manager.cc

    r9757 r9863  
    1717*/
    1818
    19 #define DEBUG_SPECIAL_MODULE 4 //DEBUG_MODULE_WEAPON
     19#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    2020
    2121#include "weapon_manager.h"
     
    302302    weapon->setDefaultTarget(this->crosshair);
    303303  }
    304   PRINTF(3)("Added a new Weapon (%s::%s) to the WeaponManager: config %i/ slot %i\n", weapon->getClassCName(), weapon->getCName(), configID, slotID);
     304  PRINTF(4)("Added a new Weapon (%s::%s) to the WeaponManager: config %i/ slot %i\n", weapon->getClassCName(), weapon->getCName(), configID, slotID);
    305305  return true;
    306306}
  • branches/new_class_id/src/world_entities/weather_effects/cloud_effect.cc

    r9833 r9863  
    8181
    8282void CloudEffect::init() {
    83     PRINTF(0)("Initializing CloudEffect\n");
     83    PRINTF(4)("Initializing CloudEffect\n");
    8484
    8585    // default values
     
    176176
    177177void CloudEffect::deactivate() {
    178     PRINTF(0)("Deactivating CloudEffect\n");
     178    PRINTF(4)("Deactivating CloudEffect\n");
    179179
    180180    this->skydome->deactivate();
Note: See TracChangeset for help on using the changeset viewer.