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
RevLine 
[5650]1/*
2  orxonox - the future of 3D-vertical-scrollers
[5800]3
[5650]4  Copyright (C) 2004 orx
[5800]5
[5650]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.
[5800]10
[5650]11### File Specific:
12    main-programmer: Patrick Boenzli
[5800]13    co-programmer:
[5650]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
[5800]26
[5650]27/**
28 *  default constructor
29 */
[7617]30SimpleSync::SimpleSync( std::string name )
[5650]31{
[7614]32  setName( name );
[7613]33  in = 0;
34  out = 1;
[7617]35  id = this->registerVarId( new SynchronizeableInt( &in, &out, "var", PERMISSION_ALL ) );
[5650]36}
37
[5800]38
[5650]39/**
40 *  default destructor deletes all unneded stuff
41 */
42SimpleSync::~SimpleSync()
43{
44}
45
[7613]46void SimpleSync::debug( )
[5650]47{
[7613]48  printf("IN: %d OUT: %d\n", in, out);
[5650]49}
50
51
[5805]52
Note: See TracBrowser for help on using the repository browser.