Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

fixed some bugs - handshake works now

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(const char* name)
31  : Synchronizeable()
32{
33  setName( name );
34  in = 0;
35  out = 1;
36  id = registerVarId( new SynchronizeableInt( &in, &out, "var" ) );
37}
38
39
40/**
41 *  default destructor deletes all unneded stuff
42 */
43SimpleSync::~SimpleSync()
44{
45}
46
47void SimpleSync::debug( )
48{
49  printf("IN: %d OUT: %d\n", in, out);
50}
51
52
53
Note: See TracBrowser for help on using the repository browser.