forked from OpenRCT2/OpenRCT2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define tile elements in save as RCT12TileElement
- Loading branch information
1 parent
da965cb
commit fbecfe5
Showing
5 changed files
with
336 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/***************************************************************************** | ||
* Copyright (c) 2014-2018 OpenRCT2 developers | ||
* | ||
* For a complete list of all authors, please refer to contributors.md | ||
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 | ||
* | ||
* OpenRCT2 is licensed under the GNU General Public License version 3. | ||
*****************************************************************************/ | ||
|
||
#include "RCT12.h" | ||
|
||
#include "../world/TileElement.h" | ||
|
||
uint8_t RCT12TileElementBase::GetType() const | ||
{ | ||
return this->type & TILE_ELEMENT_TYPE_MASK; | ||
} | ||
|
||
uint8_t RCT12TileElementBase::GetDirection() const | ||
{ | ||
return this->type & TILE_ELEMENT_DIRECTION_MASK; | ||
} | ||
|
||
bool RCT12TileElementBase::IsLastForTile() const | ||
{ | ||
return (this->flags & TILE_ELEMENT_FLAG_LAST_TILE) != 0; | ||
} | ||
|
||
bool RCT12TileElementBase::IsGhost() const | ||
{ | ||
return (this->flags & TILE_ELEMENT_FLAG_GHOST) != 0; | ||
} |
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.