resonance 1.0.1
Loading...
Searching...
No Matches
scgameoverpacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
6
27public:
38 static Message *New();
39
47 virtual Message *Clone();
48
56 virtual int Type();
57
65 virtual const char *GetName() const;
66
76 virtual void PrintExtra(std::ostream &stream) const;
77
87 virtual void saveGuts(OBStream &stream) const;
88
98 virtual void restoreGuts(IBStream &stream);
99
100private:
101 int mResult;
102};
103
113extern int g_nSCGameOverPacketType;
Input half of the byte stream interface.
Definition ibstream.h:36
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Output half of the byte stream interface.
Definition obstream.h:25
Network packet the game sends between game systems.
Definition scgameoverpacket.h:26
virtual void PrintExtra(std::ostream &stream) const
Write the payload to a diagnostic stream.
virtual const char * GetName() const
Report this packet's class name.
virtual void restoreGuts(IBStream &stream)
Read the packet back from a stream.
virtual Message * Clone()
Produce a heap copy of this packet.
static Message * New()
Produce a default-constructed packet on the heap.
virtual void saveGuts(OBStream &stream) const
Write the packet to a stream.
virtual int Type()
Report this packet's registered identity.
ToAllGameControllersPacket()
Route the packet with the pair 3 and 2.
Definition toallgamecontrollerspacket.h:21
int g_nSCGameOverPacketType
Identity that SCGameOverPacket::Type() reports.