From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec_server/include/e_simnetinput.h | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 src/parsec_server/include/e_simnetinput.h (limited to 'src/parsec_server/include/e_simnetinput.h') diff --git a/src/parsec_server/include/e_simnetinput.h b/src/parsec_server/include/e_simnetinput.h new file mode 100755 index 0000000..889bcf8 --- /dev/null +++ b/src/parsec_server/include/e_simnetinput.h @@ -0,0 +1,48 @@ +#ifndef E_SIMNETINPUT_H_ +#define E_SIMNETINPUT_H_ + +// forward decls -------------------------------------------------------------- +// +class E_REList; +//struct RE_Header; +//struct ShipRemInfo; + + +// class for handling the network input from the simulation ------------------- +// +class E_SimNetInput { +protected: + E_REList* m_pInputREList; + +protected: + // default ctor/dtor + E_SimNetInput(); + ~E_SimNetInput(); + +public: + // SINGLETON access + static E_SimNetInput* GetSimNetInput() + { + static E_SimNetInput _TheSimNetInput; + return &_TheSimNetInput; + } + + // reset all data + void Reset(); + + // get the input remote event list + //E_REList* GetInputREList() { return m_pInputREList; } + + // walk the input RE queue and apply events/states to simulation + void ProcessInputREList(); + + // handle the network input from a client + int HandleOneClient( int nClientID, RE_Header* relist ); + +protected: + // check absolute movement bounds + int _CheckAbsoluteMovementBounds( RE_PlayerAndShipStatus* pPAS ); +}; + +#endif // !E_SIMNETINPUT_H_ + -- cgit v1.2.3