Packet that responds to a TimeRequestPkt with the clock of the responding console.
More...
#include <timeresponsepkt.h>
|
| static Message * | New () |
| | Produce a default-constructed packet on the heap.
|
| static Message * | NewMessage (int nType) |
| | Produce a message of the identified class through the factory list.
|
Packet that responds to a TimeRequestPkt with the clock of the responding console.
The RTTI records the class as deriving from InternalPacket. The members Clone(), Type(), and GetName() are inline. The member names are inferred.
◆ TimeResponsePkt() [1/2]
| TimeResponsePkt::TimeResponsePkt |
( |
| ) |
|
|
default |
Construct a packet with the times left unset.
Inline. New() expands it.
◆ TimeResponsePkt() [2/2]
| TimeResponsePkt::TimeResponsePkt |
( |
int | nReceiver, |
|
|
float | fSendTime, |
|
|
float | fRequestTime ) |
|
inline |
Construct a packet for one peer, with no delivery flag.
Inline.
- Parameters
-
| nReceiver | The peer the packet is for. |
| fSendTime | The clock of this console now. |
| fRequestTime | The time of the request the packet responds to. |
◆ New()
Produce a default-constructed packet on the heap.
- Returns
- The packet.
- Ghidra address:
- NTSC-U/C: 0x00267688
- Ghidra address:
- PAL: 0x00271360
◆ operator new()
| void * TimeResponsePkt::operator new |
( |
size_t | nSize | ) |
|
|
inline |
Allocate a packet, billed to the class name.
- Parameters
-
| nSize | The object size the compiler supplies. |
- Returns
- The block.
◆ operator delete()
| void TimeResponsePkt::operator delete |
( |
void * | pBlock | ) |
|
|
inline |
Release a packet.
- Parameters
-
◆ Clone()
| Message * TimeResponsePkt::Clone |
( |
| ) |
|
|
inlineoverridevirtual |
Produce a heap copy of this packet.
- Returns
- The copy.
Implements Message.
◆ Type()
| int TimeResponsePkt::Type |
( |
| ) |
|
|
inlineoverridevirtual |
Report this packet's registered identity.
- Returns
- g_nTimeResponsePktType.
Implements Message.
◆ GetName()
| const char * TimeResponsePkt::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ PrintExtra()
| void TimeResponsePkt::PrintExtra |
( |
PrnStream & | stream | ) |
const |
|
overridevirtual |
Write the sender, the receiver, and the two times as req: and send:.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x002697a8
- Ghidra address:
- PAL: 0x00273360
Reimplemented from Packet.
◆ saveGuts()
| void TimeResponsePkt::saveGuts |
( |
BinStream & | stream | ) |
const |
|
overridevirtual |
Write mRequestTime and then mSendTime.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00269810
- Ghidra address:
- PAL: 0x002733c8
Reimplemented from Message.
◆ restoreGuts()
| void TimeResponsePkt::restoreGuts |
( |
BinStream & | stream | ) |
|
|
overridevirtual |
Read what saveGuts() wrote.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x00269870
- Ghidra address:
- PAL: 0x00273428
Reimplemented from Message.
◆ GetRequestTime()
| float TimeResponsePkt::GetRequestTime |
( |
| ) |
const |
|
inline |
- Returns
- The time of the request the packet responds to.
◆ GetSendTime()
| float TimeResponsePkt::GetSendTime |
( |
| ) |
const |
|
inline |
- Returns
- The clock of the responding console when it sent the packet.
The documentation for this class was generated from the following file: