diff options
Diffstat (limited to 'StarsEx/NetPlayer.h')
-rw-r--r-- | StarsEx/NetPlayer.h | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/StarsEx/NetPlayer.h b/StarsEx/NetPlayer.h index 143a8be..d79f263 100644 --- a/StarsEx/NetPlayer.h +++ b/StarsEx/NetPlayer.h @@ -11,15 +11,16 @@ Network Player (Director) class */ -#ifndef NetPlayer_h -#define NetPlayer_h +#pragma once + +#include <cstdint> + +#include <List.h> +#include <Text.h> -#include "Types.h" #include "Geometry.h" #include "Director.h" #include "SimObject.h" -#include "List.h" -#include "Text.h" // +--------------------------------------------------------------------+ @@ -44,14 +45,14 @@ class NetPlayer : public Director, public SimObserver public: static const char* TYPENAME() { return "NetPlayer"; } - NetPlayer(DWORD nid) : netid(nid), objid(0), ship(0), iff(0) { } + NetPlayer(std::uint32_t nid) : netid(nid), objid(0), ship(0), iff(0) { } ~NetPlayer(); int operator == (const NetPlayer& p) const { return netid == p.netid; } - DWORD GetNetID() const { return netid; } - DWORD GetObjID() const { return objid; } - void SetObjID(DWORD o) { objid = o; } + std::uint32_t GetNetID() const { return netid; } + std::uint32_t GetObjID() const { return objid; } + void SetObjID(std::uint32_t o) { objid = o; } int GetIFF() const { return iff; } Ship* GetShip() const { return ship; } @@ -80,8 +81,8 @@ public: virtual const char* GetObserverName() const; protected: - DWORD netid; - DWORD objid; + std::uint32_t netid; + std::uint32_t objid; Text name; Text serno; Ship* ship; @@ -90,8 +91,3 @@ protected: Point loc_error; double bleed_time; }; - -// +--------------------------------------------------------------------+ - -#endif // NetPlayer_h - |