Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 732


Ignore:
Timestamp:
Dec 30, 2007, 10:14:48 PM (17 years ago)
Author:
nicolasc
Message:
  • added copyrightnotice to spaceshipsteeringobject
  • added OPTION to build networktools
  • minor cleanups
Location:
code/branches/FICN
Files:
6 edited

Legend:

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

    r728 r732  
    44OPTION(TESTING_ENABLED "Do you want to enable Testing")
    55IF (TESTING_ENABLED)
    6 ENABLE_TESTING()
     6  ENABLE_TESTING()
    77ENDIF(TESTING_ENABLED)
     8
     9OPTION(NETWORK_TESTING_ENABLED "Do you want to build network testing tools: i.e. chatclient chatserver and alike")
    810
    911#Create some verbose output
     
    5052
    5153# pipe $FLAGS to the compiler, and add some local flags. force -O2!
    52 #SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O2 -Wall -g -ggdb")
    5354SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O2 -Wall -g -ggdb")
    54 #SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O2 -Wall -g -ggdb")
    5555SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O2 -Wall -g -ggdb")
    5656SET(CMAKE_LD_FLAGS "$ENV{LDFLAGS}")
  • code/branches/FICN/src/network/CMakeLists.txt

    r659 r732  
    11PROJECT(Orxonox)
    2 
    3 SET( CHATCLIENT_SRC_FILES
    4   ClientConnection.cc
    5   Client.cc
    6   PacketBuffer.cc
    7   PacketDecoder.cc
    8   PacketGenerator.cc
    9   dummyclient3.cc
    10 )
    11 
    12 SET( CHATSERVER_SRC_FILES
    13   ConnectionManager.cc
    14   GameStateManager.cc
    15   PacketBuffer.cc
    16   PacketDecoder.cc
    17   PacketGenerator.cc
    18   dummyserver3.cc
    19 )
    202
    213SET( NETWORK_SRC_FILES
     
    4224TARGET_LINK_LIBRARIES(network ${ZLIB_LIBRARY} ${ENet_LIBRARY} ${Boost_thread_LIBRARIES})
    4325
    44 # chatserver for testing purposes
    45 ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES})
    46 TARGET_LINK_LIBRARIES( chatserver
    47   ${OGRE_LIBRARIES}
    48   network
    49   core
    50   #objects
    51   ${ENet_LIBRARY}
    52   ${ZLIB_LIBRARY}
    53   ${WINDOWS_ENET_DEPENDENCIES}
    54 )
     26# build those parts only on request.
     27IF(NETWORK_TESTING_ENABLED)
     28  SET( CHATCLIENT_SRC_FILES
     29    ClientConnection.cc
     30    Client.cc
     31    PacketBuffer.cc
     32    PacketDecoder.cc
     33    PacketGenerator.cc
     34    dummyclient3.cc
     35  )
    5536
    56 # chatclient for testing purpose
    57 ADD_EXECUTABLE(chatclient ${CHATCLIENT_SRC_FILES})
    58 TARGET_LINK_LIBRARIES( chatclient
    59   ${OGRE_LIBRARIES}
    60   network
    61   core
    62   #objects
    63   ${ENet_LIBRARY}
    64   ${ZLIB_LIBRARY}
    65   ${WINDOWS_ENET_DEPENDENCIES}
    66 )
     37  SET( CHATSERVER_SRC_FILES
     38    ConnectionManager.cc
     39    GameStateManager.cc
     40    PacketBuffer.cc
     41    PacketDecoder.cc
     42    PacketGenerator.cc
     43    dummyserver3.cc
     44  )
    6745
    68 # client for testing purpose
    69 ADD_EXECUTABLE(client dummyclient2.cc)
    70 TARGET_LINK_LIBRARIES( client
    71   ${OGRE_LIBRARIES}
    72   network
    73   core
    74   #objects
    75   ${ENet_LIBRARY}
    76   ${ZLIB_LIBRARY}
    77   ${WINDOWS_ENET_DEPENDENCIES}
    78 )
     46  # chatserver for testing purposes
     47  ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES})
     48  TARGET_LINK_LIBRARIES( chatserver
     49    ${OGRE_LIBRARIES}
     50    network
     51    core
     52    #objects
     53    ${ENet_LIBRARY}
     54    ${ZLIB_LIBRARY}
     55    ${WINDOWS_ENET_DEPENDENCIES}
     56  )
    7957
    80 # server for testing purpose
    81 ADD_EXECUTABLE(server dummyserver.cc)
    82 TARGET_LINK_LIBRARIES( server
    83   ${OGRE_LIBRARIES}
    84   network
    85   core
    86   #objects
    87   ${ENet_LIBRARY}
    88   ${ZLIB_LIBRARY}
    89   ${WINDOWS_ENET_DEPENDENCIES}
    90 )
     58  # chatclient for testing purpose
     59  ADD_EXECUTABLE(chatclient ${CHATCLIENT_SRC_FILES})
     60  TARGET_LINK_LIBRARIES( chatclient
     61    ${OGRE_LIBRARIES}
     62    network
     63    core
     64    #objects
     65    ${ENet_LIBRARY}
     66    ${ZLIB_LIBRARY}
     67    ${WINDOWS_ENET_DEPENDENCIES}
     68  )
    9169
     70  # client for testing purpose
     71  ADD_EXECUTABLE(client dummyclient2.cc)
     72  TARGET_LINK_LIBRARIES( client
     73    ${OGRE_LIBRARIES}
     74    network
     75    core
     76    #objects
     77    ${ENet_LIBRARY}
     78    ${ZLIB_LIBRARY}
     79    ${WINDOWS_ENET_DEPENDENCIES}
     80  )
     81
     82  # server for testing purpose
     83  ADD_EXECUTABLE(server dummyserver.cc)
     84  TARGET_LINK_LIBRARIES( server
     85    ${OGRE_LIBRARIES}
     86    network
     87    core
     88    #objects
     89    ${ENet_LIBRARY}
     90    ${ZLIB_LIBRARY}
     91    ${WINDOWS_ENET_DEPENDENCIES}
     92  )
     93ENDIF(NETWORK_TESTING_ENABLED)
  • code/branches/FICN/src/network/GameStateClient.h

    r673 r732  
    22// C++ Interface: GameStateClient
    33//
    4 // Description: 
     4// Description:
    55//
    66//
     
    2121namespace network {
    2222
    23 /**
    24         @author
    25 */
    2623class GameStateClient{
    2724public:
     
    3633  GameState decode(GameStateCompressed x);
    3734  void removeObject(orxonox::Iterator<Synchronisable> &it);
    38  
     35
    3936  GameState reference;
    4037};
  • code/branches/FICN/src/orxonox/core/Identifier.h

    r729 r732  
    6464// These two files would actually be need, but they would produce
    6565// circular dependencies. Anyway, it does compile without them
    66 //#include "OrxonoxClass.h"
    67 //#include "MetaObjectList.h"
     66// #include "OrxonoxClass.h"
     67// #include "MetaObjectList.h"
    6868
    6969namespace orxonox
  • code/branches/FICN/src/orxonox/objects/SpaceShip.h

    r729 r732  
    4545
    4646            void doNothing() {
    47             int a = 0;
     47            int a = 0;    //FIXME unused var
    4848            }
    4949
  • code/branches/FICN/src/orxonox/objects/SpaceshipSteeringObject.cc

    r663 r732  
     1/*
     2 *   ORXONOX - the hottest 3D action shooter ever to exist
     3 *
     4 *
     5 *   License notice:
     6 *
     7 *   This program is free software; you can redistribute it and/or
     8 *   modify it under the terms of the GNU General Public License
     9 *   as published by the Free Software Foundation; either version 2
     10 *   of the License, or (at your option) any later version.
     11 *
     12 *   This program is distributed in the hope that it will be useful,
     13 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 *   GNU General Public License for more details.
     16 *
     17 *   You should have received a copy of the GNU General Public License
     18 *   along with this program; if not, write to the Free Software
     19 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     20 *
     21 *   Author:
     22 *      ...
     23 *   Co-authors:
     24 *      ...
     25 *
     26 */
     27
    128#include <OgreSceneManager.h>
    229#include <OgreSceneNode.h>
Note: See TracChangeset for help on using the changeset viewer.