resonance 1.0.1
Loading...
Searching...
No Matches
cripplepacket.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <vector>
5
6#include "game/idableptr.h"
8
9class IBStream;
10class OBStream;
11class Player;
12
29private:
30 IDablePtr<Player> mAttacker; // +0x14
31
32public:
40 }
41
54 CripplePacket(Player *pAttacker, std::vector<Player *> victims);
55
66 static Message *New();
67
75 virtual Message *Clone();
76
84 virtual int Type();
85
93 virtual const char *GetName() const;
94
103 virtual void PrintExtra(std::ostream &stream) const;
104
113 virtual void saveGuts(OBStream &stream) const;
114
123 virtual void restoreGuts(IBStream &stream);
124
131 std::vector<IDablePtr<Player> > mTargets;
132};
133
142extern int g_nCripplePacketType;
virtual void PrintExtra(std::ostream &stream) const
Write the first player's address and then every other player's address in parentheses,...
CripplePacket()
Construct a packet with no references.
Definition cripplepacket.h:39
static Message * New()
Produce a packet with no references on the heap.
virtual int Type()
Report this packet's registered identity.
virtual const char * GetName() const
Report this packet's class name.
virtual Message * Clone()
Produce a heap copy of this packet.
virtual void restoreGuts(IBStream &stream)
Read the Packet words, the first identifier, and the count, resize the vector, and read every other i...
virtual void saveGuts(OBStream &stream) const
Write the Packet words, the first player's identifier, the vector's count, and every other player's i...
CripplePacket(Player *pAttacker, std::vector< Player * > victims)
Report a crippler deployed on a set of players.
std::vector< IDablePtr< Player > > mTargets
The players the crippler strikes.
Definition cripplepacket.h:131
Input half of the byte stream interface.
Definition ibstream.h:36
Reference to a registered object by its identifier, resolved on first use.
Definition idableptr.h:30
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
One participant in a session, local or remote.
Definition player.h:39
ToAllOtherGameSystemsPacket()
Route the packet with the pair 2 and 3.
Definition toallothergamesystemspacket.h:21
int g_nCripplePacketType
Identity that CripplePacket::Type() reports.