aboutsummaryrefslogtreecommitdiff
path: root/src/parsec_server/include/e_simnetinput.h
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
commitc068f22329d5cc722622a2183bbb22eef2093df7 (patch)
tree12d56c1aede67988a55e241364606bfbb4dba933 /src/parsec_server/include/e_simnetinput.h
downloadopenparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz
openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip
initial importHEADmain
Diffstat (limited to 'src/parsec_server/include/e_simnetinput.h')
-rwxr-xr-xsrc/parsec_server/include/e_simnetinput.h48
1 files changed, 48 insertions, 0 deletions
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_
+