Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Refactor: Split up p_dmu.h; produced DmuArgs from setargs_t
- Loading branch information
1 parent
679f9bb
commit b9f73d2
Showing
28 changed files
with
885 additions
and
966 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** @file world/dmuargs.h Doomsday Map Update (API) Arguments. | ||
* | ||
* @author Copyright © 2006-2013 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
* @author Copyright © 2006-2013 Daniel Swanson <danij@dengine.net> | ||
* | ||
* @par License | ||
* GPL: http://www.gnu.org/licenses/gpl.html | ||
* | ||
* <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 DENG_WORLD_DMUARGS_H | ||
#define DENG_WORLD_DMUARGS_H | ||
|
||
#include "api_mapedit.h" // valuetype_t | ||
|
||
/** | ||
* Encapsulates the arguments used when routing DMU API calls to map elements. | ||
* | ||
* @ingroup world | ||
*/ | ||
class DmuArgs | ||
{ | ||
public: /// @todo make private | ||
int type; | ||
uint prop; | ||
int modifiers; /// Property modifiers (e.g., line of sector) | ||
valuetype_t valueType; | ||
boolean *booleanValues; | ||
byte *byteValues; | ||
int *intValues; | ||
fixed_t *fixedValues; | ||
float *floatValues; | ||
double *doubleValues; | ||
angle_t *angleValues; | ||
void **ptrValues; | ||
|
||
DmuArgs(int type, uint prop); | ||
|
||
/** | ||
* Read the value of an argument. Does some basic type checking so that | ||
* incompatible types are not assigned. Simple conversions are also done, | ||
* e.g., float to fixed. | ||
*/ | ||
void value(valuetype_t valueType, void *dst, uint index) const; | ||
|
||
/** | ||
* Change the value of an argument. Does some basic type checking so that | ||
* incompatible types are not assigned. Simple conversions are also done, | ||
* e.g., float to fixed. | ||
*/ | ||
void setValue(valuetype_t valueType, void const *src, uint index); | ||
}; | ||
|
||
#endif // DENG_WORLD_DMUARGS_H |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.