Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|libcommon: Switched common/src/p_mapsetup to C++
- Loading branch information
1 parent
730cce9
commit a507687
Showing
17 changed files
with
329 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,58 @@ | ||
/**\file | ||
*\section License | ||
* License: GPL | ||
* Online License Link: http://www.gnu.org/licenses/gpl.html | ||
/** @file p_xg.h Extended Generalised Line / Sector Types. | ||
* | ||
*\author Copyright © 2003-2013 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
*\author Copyright © 2006-2013 Daniel Swanson <danij@dengine.net> | ||
* @authors Copyright © 2003-2013 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
* @authors Copyright © 2006-2013 Daniel Swanson <danij@dengine.net> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* @par License | ||
* GPL: http://www.gnu.org/licenses/gpl.html | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, | ||
* Boston, MA 02110-1301 USA | ||
* <small>This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. This program is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
* Public License for more details. You should have received a copy of the GNU | ||
* General Public License along with this program; if not, write to the Free | ||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA</small> | ||
*/ | ||
|
||
#ifndef __EXTENDED_GENERAL_H__ | ||
#define __EXTENDED_GENERAL_H__ | ||
#ifndef LIBCOMMON_PLAYSIM_XG_H | ||
#define LIBCOMMON_PLAYSIM_XG_H | ||
|
||
#include "p_xgline.h" | ||
#include "p_xgsec.h" | ||
|
||
extern int xgDev; | ||
extern boolean xgDataLumps; | ||
DENG_EXTERN_C int xgDev; | ||
DENG_EXTERN_C boolean xgDataLumps; | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
// Debug message printer. | ||
void XG_Dev(const char *format, ...) PRINTF_F(1,2); | ||
void XG_Dev(char const *format, ...) PRINTF_F(1,2); | ||
|
||
// Called once, at post init. | ||
void XG_ReadTypes(void); | ||
// Called once post init. | ||
void XG_ReadTypes(void); | ||
|
||
// Init both XG lines and sectors. Called for each map. | ||
void XG_Init(void); | ||
void XG_Init(void); | ||
|
||
// Thinks for XG lines and sectors. | ||
void XG_Ticker(void); | ||
void XG_Ticker(void); | ||
|
||
// Updates XG state during engine reset. | ||
void XG_Update(void); | ||
void XG_Update(void); | ||
|
||
//void XG_WriteTypes(FILE * file); | ||
void XG_ReadTypes(void); | ||
void XG_ReadTypes(void); | ||
|
||
linetype_t *XG_GetLumpLine(int id); | ||
sectortype_t *XG_GetLumpSector(int id); | ||
linetype_t *XG_GetLumpLine(int id); | ||
sectortype_t *XG_GetLumpSector(int id); | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif | ||
|
||
#endif /* LIBCOMMON_PLAYSIM_XG_H */ |
Oops, something went wrong.