wavelength 1.0.0
Loading...
Searching...
No Matches
findplayertask.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;
8struct NetChatroomInfo;
9
16class FindPlayerTask : public NetTask {
17public:
24 ~FindPlayerTask() override = default;
25
35 : mChatroom(pChatroom), mPlayer(pPlayer) {
36 }
37
51 static void
52 OnResponse(int nConnection, int nType, int nSize, const rtMediusFindPlayerResponse *pResponse);
53
54protected:
61 void OnStart() override;
62
63private:
64 NetChatroomInfo *mChatroom;
65 LobbyPlayer *mPlayer;
66};
void OnStart() override
Clear the room and send the request, or finish for an offline player.
~FindPlayerTask() override=default
Destroy the object.
FindPlayerTask(NetChatroomInfo *pChatroom, LobbyPlayer *pPlayer)
Construct a step.
Definition findplayertask.h:34
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusFindPlayerResponse *pResponse)
Take the room of a location of the player, and finish the step the response is tagged with after the ...
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
The description of one chat room of the online lobby.
Definition netchatroominfo.h:11