mirror of
https://github.com/Maks1mS/pppi-rpg-game.git
synced 2024-12-23 22:32:59 +03:00
110 lines
12 KiB
HTML
110 lines
12 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
<meta name="generator" content="Doxygen 1.9.1"/>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
<title>PPPI RPG Game: Исходный файл multiplayer_manager.h</title>
|
||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
<script type="text/javascript" src="jquery.js"></script>
|
||
<script type="text/javascript" src="dynsections.js"></script>
|
||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||
<script type="text/javascript" src="search/search.js"></script>
|
||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
</head>
|
||
<body>
|
||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
<div id="titlearea">
|
||
<table cellspacing="0" cellpadding="0">
|
||
<tbody>
|
||
<tr style="height: 56px;">
|
||
<td id="projectalign" style="padding-left: 0.5em;">
|
||
<div id="projectname">PPPI RPG Game
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<!-- end header part -->
|
||
<!-- Создано системой Doxygen 1.9.1 -->
|
||
<script type="text/javascript">
|
||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
var searchBox = new SearchBox("searchBox", "search",false,'Поиск','.html');
|
||
/* @license-end */
|
||
</script>
|
||
<script type="text/javascript" src="menudata.js"></script>
|
||
<script type="text/javascript" src="menu.js"></script>
|
||
<script type="text/javascript">
|
||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
$(function() {
|
||
initMenu('',true,false,'search.php','Поиск');
|
||
$(document).ready(function() { init_search(); });
|
||
});
|
||
/* @license-end */</script>
|
||
<div id="main-nav"></div>
|
||
</div><!-- top -->
|
||
<!-- window showing the filter options -->
|
||
<div id="MSearchSelectWindow"
|
||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
</div>
|
||
|
||
<!-- iframe showing the search results (closed by default) -->
|
||
<div id="MSearchResultsWindow">
|
||
<iframe src="javascript:void(0)" frameborder="0"
|
||
name="MSearchResults" id="MSearchResults">
|
||
</iframe>
|
||
</div>
|
||
|
||
<div class="header">
|
||
<div class="headertitle">
|
||
<div class="title">multiplayer_manager.h</div> </div>
|
||
</div><!--header-->
|
||
<div class="contents">
|
||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
|
||
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html"> 4</a></span> <span class="keyword">class </span><a class="code" href="class_multiplayer_manager.html">MultiplayerManager</a> {</div>
|
||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="keyword">public</span>:</div>
|
||
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#a7e748fa6ce2900814ccd47dfd5c243b6"> 9</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#a7e748fa6ce2900814ccd47dfd5c243b6">initializeNetwork</a>();</div>
|
||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#a48d2617d5398f6e55a68e38c1fb37a8b"> 15</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#a48d2617d5398f6e55a68e38c1fb37a8b">createSession</a>(<span class="comment">/* параметры сессии */</span>);</div>
|
||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
||
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#a7b6261976a4ad3c2de89b8db964959f7"> 21</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#a7b6261976a4ad3c2de89b8db964959f7">joinSession</a>(<span class="comment">/* идентификатор сессии */</span>);</div>
|
||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#a8713ca0191b7261126272dafca29f2cf"> 26</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#a8713ca0191b7261126272dafca29f2cf">updateNetworkEvents</a>();</div>
|
||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
||
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#aa484c5d22767eab88a7af456ac6a099f"> 32</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#aa484c5d22767eab88a7af456ac6a099f">sendData</a>(<span class="comment">/* данные для отправки */</span>);</div>
|
||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#a11316b07e85272b4e78b5aa54a4780d5"> 37</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#a11316b07e85272b4e78b5aa54a4780d5">receiveData</a>();</div>
|
||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
||
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#aaa962fd408388cbeb886be26c765926d"> 42</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#aaa962fd408388cbeb886be26c765926d">closeSession</a>();</div>
|
||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
|
||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">private</span>:</div>
|
||
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#ab79c879bd64db377585050b20ae4c77f"> 49</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#ab79c879bd64db377585050b20ae4c77f">handlePlayerJoin</a>(<span class="comment">/* данные игрока */</span>);</div>
|
||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  </div>
|
||
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#a4284fd956b3636f15277f53c83ba712a"> 55</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#a4284fd956b3636f15277f53c83ba712a">handlePlayerLeave</a>(<span class="comment">/* идентификатор игрока */</span>);</div>
|
||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
|
||
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_multiplayer_manager.html#aac68b4eda8b76435634e85ba150c071a"> 60</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_multiplayer_manager.html#aac68b4eda8b76435634e85ba150c071a">synchronizeGameState</a>();</div>
|
||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> };</div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html"><div class="ttname"><a href="class_multiplayer_manager.html">MultiplayerManager</a></div><div class="ttdoc">Класс MultiplayerManager позволяет игрокам взаимодействовать друг с другом в онлайн-режиме.</div><div class="ttdef"><b>Definition:</b> multiplayer_manager.h:4</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_a11316b07e85272b4e78b5aa54a4780d5"><div class="ttname"><a href="class_multiplayer_manager.html#a11316b07e85272b4e78b5aa54a4780d5">MultiplayerManager::receiveData</a></div><div class="ttdeci">void receiveData()</div><div class="ttdoc">Получает данные от сервера или других игроков.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_a4284fd956b3636f15277f53c83ba712a"><div class="ttname"><a href="class_multiplayer_manager.html#a4284fd956b3636f15277f53c83ba712a">MultiplayerManager::handlePlayerLeave</a></div><div class="ttdeci">void handlePlayerLeave()</div><div class="ttdoc">Обрабатывает выход игрока из сессии.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_a48d2617d5398f6e55a68e38c1fb37a8b"><div class="ttname"><a href="class_multiplayer_manager.html#a48d2617d5398f6e55a68e38c1fb37a8b">MultiplayerManager::createSession</a></div><div class="ttdeci">void createSession()</div><div class="ttdoc">Создает новую мультиплеерную сессию.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_a7b6261976a4ad3c2de89b8db964959f7"><div class="ttname"><a href="class_multiplayer_manager.html#a7b6261976a4ad3c2de89b8db964959f7">MultiplayerManager::joinSession</a></div><div class="ttdeci">void joinSession()</div><div class="ttdoc">Присоединяется к существующей мультиплеерной сессии.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_a7e748fa6ce2900814ccd47dfd5c243b6"><div class="ttname"><a href="class_multiplayer_manager.html#a7e748fa6ce2900814ccd47dfd5c243b6">MultiplayerManager::initializeNetwork</a></div><div class="ttdeci">void initializeNetwork()</div><div class="ttdoc">Инициализирует сетевую инфраструктуру для мультиплеера.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_a8713ca0191b7261126272dafca29f2cf"><div class="ttname"><a href="class_multiplayer_manager.html#a8713ca0191b7261126272dafca29f2cf">MultiplayerManager::updateNetworkEvents</a></div><div class="ttdeci">void updateNetworkEvents()</div><div class="ttdoc">Обрабатывает события сети и обновляет состояние мультиплеера.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_aa484c5d22767eab88a7af456ac6a099f"><div class="ttname"><a href="class_multiplayer_manager.html#aa484c5d22767eab88a7af456ac6a099f">MultiplayerManager::sendData</a></div><div class="ttdeci">void sendData()</div><div class="ttdoc">Отправляет данные игрока на сервер или другим игрокам.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_aaa962fd408388cbeb886be26c765926d"><div class="ttname"><a href="class_multiplayer_manager.html#aaa962fd408388cbeb886be26c765926d">MultiplayerManager::closeSession</a></div><div class="ttdeci">void closeSession()</div><div class="ttdoc">Завершает сессию и отключается от мультиплеера.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_aac68b4eda8b76435634e85ba150c071a"><div class="ttname"><a href="class_multiplayer_manager.html#aac68b4eda8b76435634e85ba150c071a">MultiplayerManager::synchronizeGameState</a></div><div class="ttdeci">void synchronizeGameState()</div><div class="ttdoc">Синхронизирует состояние игры между всеми участниками.</div></div>
|
||
<div class="ttc" id="aclass_multiplayer_manager_html_ab79c879bd64db377585050b20ae4c77f"><div class="ttname"><a href="class_multiplayer_manager.html#ab79c879bd64db377585050b20ae4c77f">MultiplayerManager::handlePlayerJoin</a></div><div class="ttdeci">void handlePlayerJoin()</div><div class="ttdoc">Обрабатывает подключение нового игрока.</div></div>
|
||
</div><!-- fragment --></div><!-- contents -->
|
||
<!-- start footer part -->
|
||
<hr class="footer"/><address class="footer"><small>
|
||
Создано системой <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
|
||
</small></address>
|
||
</body>
|
||
</html>
|