~ubuntu-branches/ubuntu/natty/spring/natty

« back to all changes in this revision

Viewing changes to rts/Sim/Misc/GlobalSynced.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-09-23 18:56:03 UTC
  • mfrom: (3.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100923185603-st97s5chplo42y7w
Tags: 0.82.5.1+dfsg1-1ubuntu1
* Latest upstream version for online play
* debian/control: Replace (rather than conflict) spring-engine
  - spring-engine will be a dummy package (LP: #612905)
  - also set maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
 
2
 
1
3
#ifndef GLOBAL_UNSYNCED_H
2
4
#define GLOBAL_UNSYNCED_H
3
5
 
12
14
class CPlayer;
13
15
 
14
16
/**
15
 
 * @brief Global synced stuff
 
17
 * @brief Global synced data
16
18
 *
17
19
 * Class contains globally accessible
18
 
 * stuff that remains synced.
 
20
 * data that remains synced.
19
21
 */
20
 
class CGlobalSyncedStuff
 
22
class CGlobalSynced
21
23
{
22
24
public:
23
 
        CR_DECLARE(CGlobalSyncedStuff);
24
 
        CGlobalSyncedStuff();  //!< Constructor
25
 
        ~CGlobalSyncedStuff(); //!< Destructor
 
25
        CR_DECLARE(CGlobalSynced);
 
26
        CGlobalSynced();  //!< Constructor
 
27
        ~CGlobalSynced(); //!< Destructor
26
28
        void LoadFromSetup(const CGameSetup*);
27
29
 
28
30
        int    randInt();    //!< synced random int
184
186
        int initRandSeed;
185
187
};
186
188
 
187
 
extern CGlobalSyncedStuff* gs;
 
189
extern CGlobalSynced* gs;
188
190
 
189
191
 
190
192
class SyncedRNG