wavelength 1.0.0
Loading...
Searching...
No Matches
playerinfotask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
7class LobbyPlayer;
8
15class PlayerInfoTask : public NetTask {
16public:
23 ~PlayerInfoTask() override = default;
24
33 PlayerInfoTask(LobbyPlayer *pPlayer, int nFlag) : mPlayer(pPlayer), mFlag(nFlag) {
34 }
35
49 static void
50 OnResponse(int nConnection, int nType, int nSize, const rtMediusPlayerInfoResponse *pResponse);
51
52protected:
59 void OnStart() override;
60
61private:
62 LobbyPlayer *mPlayer;
63 int mFlag;
64};
A player of the lobby server, as FindPlayerMsg reports it.
Definition lobbyplayer.h:16
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusPlayerInfoResponse *pResponse)
Take the name, the connection, and the statistics, and finish the step the response is tagged with.
~PlayerInfoTask() override=default
Destroy the object.
PlayerInfoTask(LobbyPlayer *pPlayer, int nFlag)
Construct a step.
Definition playerinfotask.h:33
void OnStart() override
Send the request.