Mario Editor: add land type switching
This commit is contained in:
@@ -80,6 +80,13 @@ void MarioBlock::custom_move(int ticks) {
|
||||
}
|
||||
}
|
||||
|
||||
void MarioBlock::setType(LandType::Value type) {
|
||||
_type = type;
|
||||
}
|
||||
LandType::Value MarioBlock::getType() const {
|
||||
return _type;
|
||||
}
|
||||
|
||||
const std::vector< uint64_t > possibleBlocks = {
|
||||
FLOOR_ID,
|
||||
STEP_ID,
|
||||
@@ -149,6 +156,13 @@ const std::vector< uint64_t > possibleCharacters = {
|
||||
MARIO_ID,
|
||||
};
|
||||
|
||||
const std::vector< LandType::Value > possibleLands = {
|
||||
LandType::OVERWORLD,
|
||||
LandType::UNDERWORLD,
|
||||
LandType::WATER,
|
||||
LandType::BOWSER
|
||||
};
|
||||
|
||||
const std::unordered_map< uint64_t, const SDL_Rect * > block_mapping = {
|
||||
{ FLOOR_ID, &FLOOR_SRC },
|
||||
{ HILL_INCLINE_ID, &HILL_INCLINE_SRC },
|
||||
|
||||
Reference in New Issue
Block a user