Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5357 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Oct 10, 2005, 9:15:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some minor cleanup, of the mess i made with AutoMake-sh

Location:
trunk/src/world_entities
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.cc

    r5354 r5357  
    1515   co-programmer: ...
    1616*/
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1718
    1819#include "camera.h"
  • trunk/src/world_entities/environment.cc

    r5308 r5357  
    1515   co-programmer:
    1616*/
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1718
    1819
  • trunk/src/world_entities/npc.cc

    r5266 r5357  
    1515   co-programmer:
    1616*/
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1718
    1819
  • trunk/src/world_entities/npc2.cc

    r5333 r5357  
    1515   co-programmer:
    1616*/
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1718
    1819
  • trunk/src/world_entities/player.cc

    r5355 r5357  
    1414*/
    1515
    16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_PLAYER
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1717
    1818#include "player.h"
  • trunk/src/world_entities/satellite.cc

    r5302 r5357  
    1515   co-programmer:
    1616*/
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1718
    1819
  • trunk/src/world_entities/skybox.cc

    r5356 r5357  
    1 
    21/*
    32   orxonox - the future of 3D-vertical-scrollers
     
    1716#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1817
    19 
    2018#include "skybox.h"
    2119
    2220#include "load_param.h"
    2321#include "factory.h"
    24 #include "list.h"
    2522
    2623using namespace std;
     24
    2725CREATE_FACTORY(SkyBox);
    2826
    2927/**
    30  *  Constructs a SkyBox and takes fileName as a map.
     28 * Constructs a SkyBox and takes fileName as a map.
    3129 * @param fileName the file to take as input for the SkyBox
    3230*/
  • trunk/src/world_entities/skybox.h

    r5039 r5357  
    11/*!
    22 * @file skybox.h
    3   *  Definition of the SkyBox, that handles the Display of an atmosphere for orxonox.
    4 
    5    A SkyBox is always centered at the current working Camera, and will only obey the cameras
    6    movment but not its rotation.
     3 *  Definition of the SkyBox, that handles the Display of an atmosphere for orxonox.
     4 *
     5 * A SkyBox is always centered at the current working Camera, and will only obey the cameras
     6 * movment but not its rotation.
    77*/
    88
     
    1414
    1515/* FORWARD DEFINITION */
    16 class Material;
    17 class Vector;
    1816
    1917//! A Class to handle a SkyBox
     
    2624  virtual ~SkyBox();
    2725
     26  void init();
    2827  void preInit();
    2928
     
    3534  void setSize(float size);
    3635  /** assumes jpg as input-format */
    37   void setTexture(const char* name) { setTextureAndType (name, "jpg"); };
     36  void setTexture(const char* name) { this->setTextureAndType (name, "jpg"); };
    3837
    3938  void setTextureAndType(const char* name, const char* extension);
  • trunk/src/world_entities/terrain.cc

    r5356 r5357  
    1313   co-programmer: ...
    1414*/
     15#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1516
    1617
     
    2728/**
    2829 *  standard constructor
    29 
    30 */
     30 */
    3131Terrain::Terrain (const TiXmlElement* root)
    3232{
  • trunk/src/world_entities/terrain.h

    r5308 r5357  
    1313#include "world_entity.h"
    1414
    15 // FORWARD DEFINITION \\
    16 class TiXmlElement;
     15// FORWARD DEFINITION
    1716class SpatialSeparation;
    1817
  • trunk/src/world_entities/test_entity.cc

    r5285 r5357  
    1515   co-programmer:
    1616*/
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
    1718
    1819
  • trunk/src/world_entities/weapons/crosshair.cc

    r5280 r5357  
    1414*/
    1515
    16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
     16#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1717
    1818#include "crosshair.h"
  • trunk/src/world_entities/weapons/projectile.cc

    r5063 r5357  
    1515   co-programmer:
    1616*/
    17 
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1818
    1919#include "projectile.h"
  • trunk/src/world_entities/weapons/test_bullet.cc

    r5257 r5357  
    1515   co-programmer:
    1616*/
    17 
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1818
    1919#include "test_bullet.h"
  • trunk/src/world_entities/weapons/test_gun.cc

    r5356 r5357  
    1919   @todo: a target to set/hit
    2020*/
    21 
     21#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    2222
    2323#include "test_gun.h"
  • trunk/src/world_entities/weapons/turret.cc

    r5356 r5357  
    1313   co-programmer:
    1414*/
    15 
     15#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
    1616
    1717#include "turret.h"
  • trunk/src/world_entities/weapons/weapon.cc

    r5356 r5357  
    169169void Weapon::prepareProjectiles(unsigned int count)
    170170{
    171   if (this->projectileFactory != NULL)
     171  if (likely(this->projectileFactory != NULL))
    172172    projectileFactory->prepare(count);
    173173  else
    174     PRINTF(2)("unable to create %d projectile for Weapon %s\n", count, this->getName());
     174    PRINTF(2)("unable to create %d projectile for Weapon %s (%s)\n", count, this->getName(), this->getClassName());
    175175}
    176176
     
    181181Projectile* Weapon::getProjectile()
    182182{
    183   if (this->projectileFactory)
     183  if (likely (this->projectileFactory != NULL))
    184184    return dynamic_cast<Projectile*>(this->projectileFactory->resurrect());
    185185  else
    186186  {
    187     PRINTF(2)("No projectile defined for Weapon %s cant return any\n", this->getName());
     187    PRINTF(2)("No projectile defined for Weapon %s(%s) cant return any\n", this->getName(), this->getClassName());
    188188    return NULL;
    189189  }
Note: See TracChangeset for help on using the changeset viewer.