Move documentation from implementations to declarations. (#2858)
This commit is contained in:
parent
b853559573
commit
ba161f623e
10 changed files with 30 additions and 25 deletions
|
|
@ -4800,9 +4800,6 @@ void MissToMonst(Missile &missile, Point position)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Check that the given tile is available to the monster
|
||||
*/
|
||||
bool IsTileAvailable(const Monster &monster, Point position)
|
||||
{
|
||||
if (!IsTileAvailable(position))
|
||||
|
|
|
|||
|
|
@ -300,6 +300,10 @@ void PrintMonstHistory(int mt);
|
|||
void PrintUniqueHistory();
|
||||
void PlayEffect(Monster &monster, int mode);
|
||||
void MissToMonst(Missile &missile, Point position);
|
||||
|
||||
/**
|
||||
* @brief Check that the given tile is available to the monster
|
||||
*/
|
||||
bool IsTileAvailable(const Monster &monster, Point position);
|
||||
bool IsSkel(int mt);
|
||||
bool IsGoat(int mt);
|
||||
|
|
|
|||
|
|
@ -19,11 +19,6 @@ bool movie_playing;
|
|||
/** Should the movie play in a loop. */
|
||||
bool loop_movie;
|
||||
|
||||
/**
|
||||
* @brief Start playback of a given video.
|
||||
* @param pszMovie The file name of the video
|
||||
* @param user_can_close Set to false to make the video unskippable.
|
||||
*/
|
||||
void play_movie(const char *pszMovie, bool userCanClose)
|
||||
{
|
||||
if (demo::IsRunning())
|
||||
|
|
@ -69,10 +64,6 @@ void play_movie(const char *pszMovie, bool userCanClose)
|
|||
OutputToLogical(&MousePosition.x, &MousePosition.y);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Fade to black and play a video
|
||||
* @param pszMovie file path of movie
|
||||
*/
|
||||
void PlayInGameMovie(const char *pszMovie)
|
||||
{
|
||||
PaletteFadeOut(8);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,17 @@ namespace devilution {
|
|||
extern bool movie_playing;
|
||||
extern bool loop_movie;
|
||||
|
||||
/**
|
||||
* @brief Start playback of a given video.
|
||||
* @param pszMovie The file name of the video
|
||||
* @param user_can_close Set to false to make the video unskippable.
|
||||
*/
|
||||
void play_movie(const char *pszMovie, bool user_can_close);
|
||||
|
||||
/**
|
||||
* @brief Fade to black and play a video
|
||||
* @param pszMovie file path of movie
|
||||
*/
|
||||
void PlayInGameMovie(const char *pszMovie);
|
||||
|
||||
} // namespace devilution
|
||||
|
|
|
|||
|
|
@ -540,9 +540,6 @@ void multi_net_ping()
|
|||
sglTimeoutStart = SDL_GetTicks();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Always true for singleplayer
|
||||
*/
|
||||
bool multi_handle_delta()
|
||||
{
|
||||
if (gbGameDestroyed) {
|
||||
|
|
|
|||
|
|
@ -55,6 +55,10 @@ void multi_send_msg_packet(uint32_t pmask, byte *src, BYTE len);
|
|||
void multi_msg_countdown();
|
||||
void multi_player_left(int pnum, int reason);
|
||||
void multi_net_ping();
|
||||
|
||||
/**
|
||||
* @return Always true for singleplayer
|
||||
*/
|
||||
bool multi_handle_delta();
|
||||
void multi_process_network_packets();
|
||||
void multi_send_zero_packet(int pnum, _cmd_id bCmd, byte *pbSrc, DWORD dwLen);
|
||||
|
|
|
|||
|
|
@ -211,10 +211,6 @@ void nthread_ignore_mutex(bool bStart)
|
|||
sgbThreadIsRunning = bStart;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Checks if it's time for the logic to advance
|
||||
* @return True if the engine should tick
|
||||
*/
|
||||
bool nthread_has_500ms_passed()
|
||||
{
|
||||
int currentTickCount = SDL_GetTicks();
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@ void nthread_set_turn_upper_bit();
|
|||
void nthread_start(bool setTurnUpperBit);
|
||||
void nthread_cleanup();
|
||||
void nthread_ignore_mutex(bool bStart);
|
||||
|
||||
/**
|
||||
* @brief Checks if it's time for the logic to advance
|
||||
* @return True if the engine should tick
|
||||
*/
|
||||
bool nthread_has_500ms_passed();
|
||||
/**
|
||||
* @brief Calculates the progress in time to the next game tick
|
||||
|
|
|
|||
|
|
@ -206,9 +206,6 @@ bool GetIniValue(const char *sectionName, const char *keyName, char *string, int
|
|||
Options sgOptions;
|
||||
bool sbWasOptionsLoaded = false;
|
||||
|
||||
/**
|
||||
* @brief Load game configurations from ini file
|
||||
*/
|
||||
void LoadOptions()
|
||||
{
|
||||
sgOptions.Diablo.bIntro = GetIniBool("Diablo", "Intro", true);
|
||||
|
|
@ -359,9 +356,6 @@ void LoadOptions()
|
|||
sbWasOptionsLoaded = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Save game configurations to ini file
|
||||
*/
|
||||
void SaveOptions()
|
||||
{
|
||||
SetIniValue("Diablo", "Intro", sgOptions.Diablo.bIntro);
|
||||
|
|
|
|||
|
|
@ -172,7 +172,14 @@ void SetIniValue(const char *sectionName, const char *keyName, const char *value
|
|||
extern Options sgOptions;
|
||||
extern bool sbWasOptionsLoaded;
|
||||
|
||||
/**
|
||||
* @brief Save game configurations to ini file
|
||||
*/
|
||||
void SaveOptions();
|
||||
|
||||
/**
|
||||
* @brief Load game configurations from ini file
|
||||
*/
|
||||
void LoadOptions();
|
||||
|
||||
} // namespace devilution
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue