Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/subprojects/network/simple_sync.cc @ 7617

Last change on this file since 7617 was 7617, checked in by rennerc, 18 years ago

added some output so synchronizeable to find strange bug. did not help :(

File size: 1.0 KB
Line 
1/*
2  orxonox - the future of 3D-vertical-scrollers
3
4  Copyright (C) 2004 orx
5
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8      the Free Software Foundation; either version 2, or (at your option)
9      any later version.
10
11### File Specific:
12    main-programmer: Patrick Boenzli
13    co-programmer:
14*/
15
16
17/* this is for debug output. It just says, that all calls to PRINT() belong to the DEBUG_MODULE_NETWORK module
18          For more information refere to https://www.orxonox.net/cgi-bin/trac.cgi/wiki/DebugOutput
19*/
20#define DEBUG_MODULE_NETWORK
21
22#include "simple_sync.h"
23
24#include "debug.h"
25
26
27/**
28 *  default constructor
29 */
30SimpleSync::SimpleSync( std::string name )
31{
32  setName( name );
33  in = 0;
34  out = 1;
35  id = this->registerVarId( new SynchronizeableInt( &in, &out, "var", PERMISSION_ALL ) );
36}
37
38
39/**
40 *  default destructor deletes all unneded stuff
41 */
42SimpleSync::~SimpleSync()
43{
44}
45
46void SimpleSync::debug( )
47{
48  printf("IN: %d OUT: %d\n", in, out);
49}
50
51
52
Note: See TracBrowser for help on using the repository browser.