Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 768 for code/branches/FICN/src


Ignore:
Timestamp:
Dec 31, 2007, 4:25:06 PM (17 years ago)
Author:
nicolasc
Message:

merged FICN_test back to FICN

Location:
code/branches/FICN/src
Files:
5 deleted
17 edited
13 copied

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/CMakeLists.txt

    r742 r768  
    1 PROJECT(Orxonox)
    2 
    31INCLUDE_DIRECTORIES(.)
    42
     3ADD_SUBDIRECTORY(util)
     4ADD_SUBDIRECTORY(orxonox/core)
     5ADD_SUBDIRECTORY(audio)
     6ADD_SUBDIRECTORY(network)
    57ADD_SUBDIRECTORY(loader)
    6 ADD_SUBDIRECTORY(network)
    78ADD_SUBDIRECTORY(orxonox)
    8 ADD_SUBDIRECTORY(audio)
    9 ADD_SUBDIRECTORY(util)
  • code/branches/FICN/src/audio/CMakeLists.txt

    r728 r768  
    1 PROJECT(Orxonox)
    2 
    3 SET(SRC_FILES
     1SET ( AUDIO_SRC_FILES
    42  AudioIncludes.h
    53  AudioManager.cc
     
    97)
    108
     9IF (WIN32)
     10  ADD_LIBRARY( audio ${AUDIO_SRC_FILES } )
     11ELSE (WIN32)
     12  ADD_LIBRARY( audio SHARED ${AUDIO_SRC_FILES})
     13ENDIF (WIN32)
    1114
    12 INCLUDE_DIRECTORIES(..)
     15SET_TARGET_PROPERTIES( audio PROPERTIES LINK_FLAGS "--no-undefined" )
    1316
    14 IF(WIN32)
    15   ADD_LIBRARY(audio ${SRC_FILES})
    16 ELSE(WIN32)
    17   ADD_LIBRARY(audio SHARED ${SRC_FILES})
    18 ENDIF(WIN32)
    19 
    20 TARGET_LINK_LIBRARIES(
    21   audio
     17TARGET_LINK_LIBRARIES( audio
    2218  ${OPENAL_LIBRARY}
    2319  ${ALUT_LIBRARY}
    2420  ${VORBISFILE_LIBRARY}
    25   ${VORBISENC_LIBRARY}
    2621  ${VORBIS_LIBRARY}
    2722  ${OGG_LIBRARY}
     23  core
    2824)
    2925
  • code/branches/FICN/src/loader/CMakeLists.txt

    r744 r768  
    1 PROJECT(Orxonox)
    2 
    3 # TODO find a cleaner way to include xmlParser
    41SET( LOADER_SRC_FILES
    52  LevelLoader.cc
    63)
    74
    8 IF(WIN32)
    9   ADD_LIBRARY(loader ${LOADER_SRC_FILES})
    10 ELSE(WIN32)
    11   ADD_LIBRARY(loader SHARED ${LOADER_SRC_FILES})
    12 ENDIF(WIN32)
     5IF (WIN32)
     6  ADD_LIBRARY( loader ${LOADER_SRC_FILES } )
     7ELSE (WIN32)
     8  ADD_LIBRARY( loader SHARED ${LOADER_SRC_FILES})
     9ENDIF (WIN32)
     10
     11SET_TARGET_PROPERTIES( loader PROPERTIES LINK_FLAGS "--no-undefined" )
    1312
    1413TARGET_LINK_LIBRARIES( loader
  • code/branches/FICN/src/network/CMakeLists.txt

    r732 r768  
    1 PROJECT(Orxonox)
    2 
    31SET( NETWORK_SRC_FILES
    42  Client.cc
     
    1715
    1816IF(WIN32)
    19   ADD_LIBRARY(network ${NETWORK_SRC_FILES})
     17  ADD_LIBRARY( network ${NETWORK_SRC_FILES})
    2018ELSE(WIN32)
    21   ADD_LIBRARY(network SHARED ${NETWORK_SRC_FILES})
     19  ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES})
    2220ENDIF(WIN32)
    2321
    24 TARGET_LINK_LIBRARIES(network ${ZLIB_LIBRARY} ${ENet_LIBRARY} ${Boost_thread_LIBRARIES})
     22SET_TARGET_PROPERTIES( network PROPERTIES LINK_FLAGS "--no-undefined" )
     23
     24TARGET_LINK_LIBRARIES( network
     25  ${ZLIB_LIBRARY}
     26  ${ENet_LIBRARY}
     27  ${Boost_thread_LIBRARIES}
     28  core
     29)
    2530
    2631# build those parts only on request.
  • code/branches/FICN/src/orxonox/CMakeLists.txt

    r752 r768  
    1 PROJECT(Orxonox)
    2 
    3 ADD_SUBDIRECTORY(core)
    4 ADD_SUBDIRECTORY(hud)
    5 IF(NOT WIN32)
    6   ADD_SUBDIRECTORY(objects)
    7   ADD_SUBDIRECTORY(tools)
    8 ENDIF(NOT WIN32)
    9 ADD_SUBDIRECTORY(particle)
    10 
    11 INCLUDE_DIRECTORIES(tools)
    12 
    131SET( ORXONOX_SRC_FILES
     2  GraphicsEngine.cc
     3  Main.cc
    144  Orxonox.cc
    155  SpaceshipSteering.cc
    16   Main.cc
    17   GraphicsEngine.cc
     6  hud/HUD.cc
     7  particle/ParticleInterface.cc
     8  tools/BillboardSet.cc
     9  tools/Light.cc
     10  tools/Mesh.cc
     11  objects/Ambient.cc
     12  objects/Camera.cc
     13  objects/Explosion.cc
     14  objects/Fighter.cc
     15  objects/Model.cc
     16  objects/NPC.cc
     17  objects/Projectile.cc
     18  objects/Skybox.cc
     19  objects/SpaceShip.cc
     20# objects/SpaceshipSteeringObject.cc
     21# objects/test1.cc
     22# objects/test2.cc
     23# objects/test3.cc
     24  objects/WorldEntity.cc
     25  objects/weapon/AmmunitionDump.cc
     26  objects/weapon/BarrelGun.cc
     27  objects/weapon/BaseWeapon.cc
     28  objects/weapon/Bullet.cc
     29  objects/weapon/BulletManager.cc
     30  objects/weapon/WeaponStation.cc
    1831)
    1932
    20 IF(WIN32)
    21   SET( OBJECTS_SRC_FILES
    22     objects/WorldEntity.cc
    23     objects/test1.cc
    24     objects/test2.cc
    25     objects/test3.cc
    26     objects/Ambient.cc
    27     objects/Skybox.cc
    28     objects/Camera.cc
    29 #    objects/SpaceshipSteeringObject.cc
    30     objects/Fighter.cc
    31     objects/Model.cc
    32     objects/SpaceShip.cc
    33     objects/NPC.cc
    34     objects/Projectile.cc
    35     objects/weapon_system/AmmunitionDump.cc
    36     objects/weapon_system/BarrelGun.cc
    37     objects/weapon_system/BaseWeapon.cc
    38     objects/weapon_system/Bullet.cc
    39     objects/weapon_system/BulletManager.cc
    40     objects/weapon_system/WeaponStation.cc
    41     objects/Explosion.cc
    42     tools/BillboardSet.cc
    43     tools/Light.cc
    44     tools/Mesh.cc
    45   )
    46 ELSE(WIN32)
    47   SET(LINK_OBJECTS_LIBRARY objects)
    48   SET(LINK_TOOLS_LIBRARY tools)
    49 ENDIF(WIN32)
     33ADD_EXECUTABLE( main ${ORXONOX_SRC_FILES} )
    5034
    51 IF(WIN32)
    52 #  ADD_LIBRARY(orxonox ${ORXONOX_SRC_FILES})
    53 ELSE(WIN32)
    54   ADD_LIBRARY(orxonox SHARED ${ORXONOX_SRC_FILES})
    55 ENDIF(WIN32)
     35SET_TARGET_PROPERTIES( main PROPERTIES LINK_FLAGS "--no-undefined" )
    5636
    57 ADD_EXECUTABLE(../../bin/main ${ORXONOX_SRC_FILES} ${OBJECTS_SRC_FILES})
    58 
    59 SET_TARGET_PROPERTIES(../../bin/main PROPERTIES LINK_FLAGS "--no-undefined" )
    60 
    61 TARGET_LINK_LIBRARIES( ../../bin/main
     37TARGET_LINK_LIBRARIES( main
    6238  ${OGRE_LIBRARIES}
    6339  ${OIS_LIBRARIES}
    64   loader
     40  util
     41  core
    6542  audio
    6643  network
    67   core
    68   hud
    69   ${LINK_OBJECTS_LIBRARY}
    70   ${LINK_TOOLS_LIBRARY}
    71   util
    72   particle
     44  loader
    7345)
    7446
  • code/branches/FICN/src/orxonox/Orxonox.cc

    r748 r768  
    7070#include "core/Debug.h"
    7171#include "hud/HUD.h"
    72 #include "objects/weapon_system/BulletManager.h"
     72#include "objects/weapon/BulletManager.h"
    7373#include "GraphicsEngine.h"
    7474
  • code/branches/FICN/src/orxonox/OrxonoxPlatform.h

    r729 r768  
    211211
    212212// disable: "conversion from 'double' to 'float', possible loss of data
    213 //#   pragma warning (disable : 4244)
     213#   pragma warning (disable : 4244)
     214
     215// disable: "conversion from 'size_t' to 'unsigned int', possible loss of data
     216#   pragma warning (disable : 4267)
    214217
    215218// disable: "truncation from 'double' to 'float'
  • code/branches/FICN/src/orxonox/SpaceshipSteering.cc

    r742 r768  
    104104      if(speedRotateUpDown_ < 0)
    105105        speedRotateUpDown_ += accelerationRotateUpDown_*time;
    106       if(abs(speedRotateUpDown_)<accelerationRotateUpDown_*time)
     106      if(fabsf(speedRotateUpDown_)<accelerationRotateUpDown_*time)
    107107        speedRotateUpDown_ = 0;
    108108    }
     
    128128      if(speedRotateRightLeft_ < 0)
    129129        speedRotateRightLeft_ += accelerationRotateRightLeft_*time;
    130       if(abs(speedRotateRightLeft_)<accelerationRotateRightLeft_*time)
     130      if(fabsf(speedRotateRightLeft_)<accelerationRotateRightLeft_*time)
    131131        speedRotateRightLeft_ = 0;
    132132    }
     
    152152      if(speedLoopRightLeft_ < 0)
    153153        speedLoopRightLeft_ += accelerationLoopRightLeft_*time;
    154       if(abs(speedLoopRightLeft_)<accelerationLoopRightLeft_*time)
     154      if(fabsf(speedLoopRightLeft_)<accelerationLoopRightLeft_*time)
    155155        speedLoopRightLeft_ = 0;
    156156    }
  • code/branches/FICN/src/orxonox/core/CMakeLists.txt

    r733 r768  
    1 PROJECT(Orxonox)
    2 
    31SET( CORE_SRC_FILES
    42  BaseObject.cc
     
    1715)
    1816
    19 IF(WIN32)
    20   ADD_LIBRARY(core SHARED ${CORE_SRC_FILES})
    21 ELSE(WIN32)
    22   ADD_LIBRARY(core SHARED ${CORE_SRC_FILES})
    23 ENDIF(WIN32)
     17ADD_LIBRARY( core SHARED ${CORE_SRC_FILES})
     18SET_TARGET_PROPERTIES( core PROPERTIES LINK_FLAGS "--no-undefined" )
     19
     20TARGET_LINK_LIBRARIES( core
     21  util
     22)
  • code/branches/FICN/src/orxonox/objects/Explosion.h

    r729 r768  
    55
    66#include "WorldEntity.h"
    7 #include "Timer.h"
     7#include "../tools/Timer.h"
    88
    99namespace orxonox
  • code/branches/FICN/src/orxonox/objects/Fighter.cc

    r742 r768  
    3838#include "../Orxonox.h"
    3939#include "../particle/ParticleInterface.h"
    40 #include "weapon_system/AmmunitionDump.h"
    41 #include "weapon_system/BarrelGun.h"
     40#include "weapon/AmmunitionDump.h"
     41#include "weapon/BarrelGun.h"
    4242
    4343#include "Fighter.h"
  • code/branches/FICN/src/orxonox/objects/Model.h

    r729 r768  
    55
    66#include "WorldEntity.h"
    7 #include "Mesh.h"
     7#include "../tools/Mesh.h"
    88
    99class TiXmlElement; // Forward declaration
  • code/branches/FICN/src/orxonox/objects/Projectile.h

    r729 r768  
    55
    66#include "WorldEntity.h"
    7 #include "BillboardSet.h"
    8 #include "Timer.h"
     7#include "../tools/BillboardSet.h"
     8#include "../tools/Timer.h"
    99
    1010namespace orxonox
  • code/branches/FICN/src/orxonox/objects/SpaceShip.h

    r736 r768  
    88
    99#include "Model.h"
    10 #include "BillboardSet.h"
     10#include "../tools/BillboardSet.h"
    1111
    1212class TiXmlElement;          // Forward declaration
  • code/branches/FICN/src/orxonox/objects/WorldEntity.h

    r742 r768  
    1313#include "orxonox/core/BaseObject.h"
    1414#include "Tickable.h"
    15 #include "Mesh.h"
     15#include "../tools/Mesh.h"
    1616
    1717namespace orxonox
  • code/branches/FICN/src/orxonox/objects/test2.h

    r734 r768  
    33
    44#include "orxonox/core/BaseObject.h"
    5 #include "Timer.h"
     5#include "../tools/Timer.h"
    66
    77namespace orxonox
  • code/branches/FICN/src/util/CMakeLists.txt

    r744 r768  
    11PROJECT(Orxonox)
    22
    3 PROJECT(Orxonox)
     3AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES)
    44
    5 INCLUDE_DIRECTORIES(tinyxml)
    6 
    7 SET (SRC_FILES
    8   tinyxml/tinystr.cc
    9   tinyxml/tinyxml.cc
    10   tinyxml/tinyxmlerror.cc
    11   tinyxml/tinyxmlparser.cc
    12   tinyxml/ticpp.cc
     5SET (UTIL_SRC_FILES
     6  ${TINYXML_SRC_FILES}
    137  substring.cc
    148)
    159
    1610IF(WIN32)
    17   ADD_LIBRARY(util ${SRC_FILES})
     11  ADD_LIBRARY( util ${UTIL_SRC_FILES} )
    1812ELSE(WIN32)
    19   ADD_LIBRARY(util SHARED ${SRC_FILES})
     13  ADD_LIBRARY( util SHARED ${UTIL_SRC_FILES} )
    2014ENDIF(WIN32)
    21 
     15SET_TARGET_PROPERTIES( util PROPERTIES LINK_FLAGS "--no-undefined" )
    2216
    2317
    2418IF(TESTING_ENABLED)
    25 ADD_SUBDIRECTORY(testing)
     19  ADD_SUBDIRECTORY(testing)
    2620ENDIF(TESTING_ENABLED)
Note: See TracChangeset for help on using the changeset viewer.