pppi-rpg-game/program/html/class_magic_system.html

180 lines
9.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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: Класс MagicSystem</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&amp;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&amp;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>
<!-- 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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Открытые члены</a> &#124;
<a href="class_magic_system-members.html">Полный список членов класса</a> </div>
<div class="headertitle">
<div class="title">Класс MagicSystem</div> </div>
</div><!--header-->
<div class="contents">
<p>Класс <a class="el" href="class_magic_system.html" title="Класс MagicSystem управляет использованием магических способностей и заклинаний.">MagicSystem</a> управляет использованием магических способностей и заклинаний.
<a href="class_magic_system.html#details">Подробнее...</a></p>
<p><code>#include &lt;<a class="el" href="magic__system_8h_source.html">magic_system.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Открытые члены</h2></td></tr>
<tr class="memitem:a5e1e1d919de2e3dbcf5d1360fcca1afc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_magic_system.html#a5e1e1d919de2e3dbcf5d1360fcca1afc">addSpell</a> ()</td></tr>
<tr class="memdesc:a5e1e1d919de2e3dbcf5d1360fcca1afc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Добавляет новое заклинание в арсенал. <a href="class_magic_system.html#a5e1e1d919de2e3dbcf5d1360fcca1afc">Подробнее...</a><br /></td></tr>
<tr class="separator:a5e1e1d919de2e3dbcf5d1360fcca1afc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50b73878c35ab94e9656e305d3bf29da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_magic_system.html#a50b73878c35ab94e9656e305d3bf29da">castSpell</a> (int spellId,)</td></tr>
<tr class="memdesc:a50b73878c35ab94e9656e305d3bf29da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Использует заклинание. <a href="class_magic_system.html#a50b73878c35ab94e9656e305d3bf29da">Подробнее...</a><br /></td></tr>
<tr class="separator:a50b73878c35ab94e9656e305d3bf29da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf398f041c02beda5f833e12f85e3a37"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_magic_system.html#adf398f041c02beda5f833e12f85e3a37">update</a> (float deltaTime)</td></tr>
<tr class="memdesc:adf398f041c02beda5f833e12f85e3a37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Обновляет состояние магии (например, восстановление маны). <a href="class_magic_system.html#adf398f041c02beda5f833e12f85e3a37">Подробнее...</a><br /></td></tr>
<tr class="separator:adf398f041c02beda5f833e12f85e3a37"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Подробное описание</h2>
<div class="textblock"><p>Класс <a class="el" href="class_magic_system.html" title="Класс MagicSystem управляет использованием магических способностей и заклинаний.">MagicSystem</a> управляет использованием магических способностей и заклинаний. </p>
</div><h2 class="groupheader">Методы</h2>
<a id="a5e1e1d919de2e3dbcf5d1360fcca1afc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e1e1d919de2e3dbcf5d1360fcca1afc">&#9670;&nbsp;</a></span>addSpell()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MagicSystem::addSpell </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Добавляет новое заклинание в арсенал. </p>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">spellParams</td><td>Параметры добавляемого заклинания. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a50b73878c35ab94e9656e305d3bf29da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50b73878c35ab94e9656e305d3bf29da">&#9670;&nbsp;</a></span>castSpell()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MagicSystem::castSpell </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>spellId</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Использует заклинание. </p>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">spellId</td><td>Идентификатор заклинания для использования. </td></tr>
<tr><td class="paramname">target</td><td>Цель заклинания. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="adf398f041c02beda5f833e12f85e3a37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf398f041c02beda5f833e12f85e3a37">&#9670;&nbsp;</a></span>update()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MagicSystem::update </td>
<td>(</td>
<td class="paramtype">float&#160;</td>
<td class="paramname"><em>deltaTime</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Обновляет состояние магии (например, восстановление маны). </p>
<dl class="params"><dt>Аргументы</dt><dd>
<table class="params">
<tr><td class="paramname">deltaTime</td><td>Время, прошедшее с предыдущего обновления, в секундах. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>Объявления и описания членов класса находятся в файле:<ul>
<li><a class="el" href="magic__system_8h_source.html">magic_system.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Создано системой&#160;<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>