mirror of
https://github.com/Maks1mS/pppi-rpg-game.git
synced 2025-10-08 05:03:29 +03:00
добавлена magic_system
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
\item\contentsline{section}{\mbox{\hyperlink{class_game_engine}{Game\+Engine}} \\*Класс \mbox{\hyperlink{class_game_engine}{Game\+Engine}} является основой для всей архитектуры игры }{\pageref{class_game_engine}}{}
|
||||
\item\contentsline{section}{\mbox{\hyperlink{class_item_inventory}{Item\+Inventory}} \\*Класс \mbox{\hyperlink{class_item_inventory}{Item\+Inventory}} управляет предметами, доступными для игрока }{\pageref{class_item_inventory}}{}
|
||||
\item\contentsline{section}{\mbox{\hyperlink{class_localization_manager}{Localization\+Manager}} \\*Класс \mbox{\hyperlink{class_localization_manager}{Localization\+Manager}} переводит текст и аудио игры на разные языки }{\pageref{class_localization_manager}}{}
|
||||
\item\contentsline{section}{\mbox{\hyperlink{class_magic_system}{Magic\+System}} \\*Класс \mbox{\hyperlink{class_magic_system}{Magic\+System}} управляет использованием магических способностей и заклинаний }{\pageref{class_magic_system}}{}
|
||||
\item\contentsline{section}{\mbox{\hyperlink{class_modding_support}{Modding\+Support}} \\*Класс \mbox{\hyperlink{class_modding_support}{Modding\+Support}} позволяет сообществу создавать и распространять собственные модификации к игре }{\pageref{class_modding_support}}{}
|
||||
\item\contentsline{section}{\mbox{\hyperlink{class_multiplayer_manager}{Multiplayer\+Manager}} \\*Класс \mbox{\hyperlink{class_multiplayer_manager}{Multiplayer\+Manager}} позволяет игрокам взаимодействовать друг с другом в онлайн-\/режиме }{\pageref{class_multiplayer_manager}}{}
|
||||
\item\contentsline{section}{\mbox{\hyperlink{class_navigation_map_system}{Navigation\+Map\+System}} \\*Класс \mbox{\hyperlink{class_navigation_map_system}{Navigation\+Map\+System}} предоставляет карты и инструменты навигации }{\pageref{class_navigation_map_system}}{}
|
||||
|
78
program/latex/class_magic_system.tex
Normal file
78
program/latex/class_magic_system.tex
Normal file
@@ -0,0 +1,78 @@
|
||||
\hypertarget{class_magic_system}{}\doxysection{Класс Magic\+System}
|
||||
\label{class_magic_system}\index{MagicSystem@{MagicSystem}}
|
||||
|
||||
|
||||
Класс \mbox{\hyperlink{class_magic_system}{Magic\+System}} управляет использованием магических способностей и заклинаний.
|
||||
|
||||
|
||||
|
||||
|
||||
{\ttfamily \#include $<$magic\+\_\+system.\+h$>$}
|
||||
|
||||
\doxysubsection*{Открытые члены}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
void \mbox{\hyperlink{class_magic_system_a5e1e1d919de2e3dbcf5d1360fcca1afc}{add\+Spell}} ()
|
||||
\begin{DoxyCompactList}\small\item\em Добавляет новое заклинание в арсенал. \end{DoxyCompactList}\item
|
||||
void \mbox{\hyperlink{class_magic_system_a50b73878c35ab94e9656e305d3bf29da}{cast\+Spell}} (int spell\+Id,)
|
||||
\begin{DoxyCompactList}\small\item\em Использует заклинание. \end{DoxyCompactList}\item
|
||||
void \mbox{\hyperlink{class_magic_system_adf398f041c02beda5f833e12f85e3a37}{update}} (float delta\+Time)
|
||||
\begin{DoxyCompactList}\small\item\em Обновляет состояние магии (например, восстановление маны). \end{DoxyCompactList}\end{DoxyCompactItemize}
|
||||
|
||||
|
||||
\doxysubsection{Подробное описание}
|
||||
Класс \mbox{\hyperlink{class_magic_system}{Magic\+System}} управляет использованием магических способностей и заклинаний.
|
||||
|
||||
\doxysubsection{Методы}
|
||||
\mbox{\Hypertarget{class_magic_system_a5e1e1d919de2e3dbcf5d1360fcca1afc}\label{class_magic_system_a5e1e1d919de2e3dbcf5d1360fcca1afc}}
|
||||
\index{MagicSystem@{MagicSystem}!addSpell@{addSpell}}
|
||||
\index{addSpell@{addSpell}!MagicSystem@{MagicSystem}}
|
||||
\doxysubsubsection{\texorpdfstring{addSpell()}{addSpell()}}
|
||||
{\footnotesize\ttfamily void Magic\+System\+::add\+Spell (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Добавляет новое заклинание в арсенал.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Аргументы}
|
||||
{\em spell\+Params} & Параметры добавляемого заклинания. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\mbox{\Hypertarget{class_magic_system_a50b73878c35ab94e9656e305d3bf29da}\label{class_magic_system_a50b73878c35ab94e9656e305d3bf29da}}
|
||||
\index{MagicSystem@{MagicSystem}!castSpell@{castSpell}}
|
||||
\index{castSpell@{castSpell}!MagicSystem@{MagicSystem}}
|
||||
\doxysubsubsection{\texorpdfstring{castSpell()}{castSpell()}}
|
||||
{\footnotesize\ttfamily void Magic\+System\+::cast\+Spell (\begin{DoxyParamCaption}\item[{int}]{spell\+Id }\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Использует заклинание.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Аргументы}
|
||||
{\em spell\+Id} & Идентификатор заклинания для использования. \\
|
||||
\hline
|
||||
{\em target} & Цель заклинания. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\mbox{\Hypertarget{class_magic_system_adf398f041c02beda5f833e12f85e3a37}\label{class_magic_system_adf398f041c02beda5f833e12f85e3a37}}
|
||||
\index{MagicSystem@{MagicSystem}!update@{update}}
|
||||
\index{update@{update}!MagicSystem@{MagicSystem}}
|
||||
\doxysubsubsection{\texorpdfstring{update()}{update()}}
|
||||
{\footnotesize\ttfamily void Magic\+System\+::update (\begin{DoxyParamCaption}\item[{float}]{delta\+Time }\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Обновляет состояние магии (например, восстановление маны).
|
||||
|
||||
|
||||
\begin{DoxyParams}{Аргументы}
|
||||
{\em delta\+Time} & Время, прошедшее с предыдущего обновления, в секундах. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
|
||||
|
||||
Объявления и описания членов класса находятся в файле\+:\begin{DoxyCompactItemize}
|
||||
\item
|
||||
magic\+\_\+system.\+h\end{DoxyCompactItemize}
|
@@ -202,6 +202,7 @@
|
||||
\input{class_game_engine}
|
||||
\input{class_item_inventory}
|
||||
\input{class_localization_manager}
|
||||
\input{class_magic_system}
|
||||
\input{class_modding_support}
|
||||
\input{class_multiplayer_manager}
|
||||
\input{class_navigation_map_system}
|
||||
|
Reference in New Issue
Block a user