Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2007, 4:47:58 PM (16 years ago)
Author:
nicolasc
Message:
  • changed comments to doxygen tags in flocking
  • reduced ogre depency in HUD and ParticleInterface
  • various
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/SceneNode.cc

    r616 r618  
    2525    void SceneNode::loadParams(TiXmlElement* xmlElem)
    2626    {
    27         if (xmlElem->Attribute("name") && xmlElem->Attribute("pos"))
    28         {
    29                 name_ = xmlElem->Attribute("name");
     27      if (xmlElem->Attribute("name") && xmlElem->Attribute("pos"))
     28      {
     29        name_ = xmlElem->Attribute("name");
    3030
    31                 std::vector<std::string> pos = tokenize(xmlElem->Attribute("pos"),",");
    32                 //float x, y, z_;
    33                 String2Number<float>(x_, pos[0]);
    34                 String2Number<float>(y_, pos[1]);
    35                 String2Number<float>(z_, pos[2]);
     31        std::vector<std::string> pos = tokenize(xmlElem->Attribute("pos"),",");
     32        //float x, y, z_;
     33         String2Number<float>(x_, pos[0]);
     34        String2Number<float>(y_, pos[1]);
     35        String2Number<float>(z_, pos[2]);
    3636
    3737        sx_ = 1; sy_ = 1; sz_ = 1;
    3838        if (xmlElem->Attribute("scale"))
    3939        {
    40                   pos = tokenize(xmlElem->Attribute("scale"),",");
    41                   String2Number<float>(sx_, pos[0]);
    42                   String2Number<float>(sy_, pos[1]);
    43                   String2Number<float>(sz_, pos[2]);
     40          pos = tokenize(xmlElem->Attribute("scale"),",");
     41           String2Number<float>(sx_, pos[0]);
     42          String2Number<float>(sy_, pos[1]);
     43          String2Number<float>(sz_, pos[2]);
    4444        }
    4545        yaw_ = 0.0;
     
    6767
    6868        COUT(4) << "Loader: loaded node "<< name_ <<" : "<< x_ <<" " << y_ << " " << z_ << std::endl << std::endl;
    69         }
     69      }
    7070   }
    7171
Note: See TracChangeset for help on using the changeset viewer.