This commit is contained in:
parent
411f00e468
commit
c453c2fe9a
@ -9,6 +9,7 @@ public:
|
||||
void custom_move(int ticks) override;
|
||||
void handleVisitor(SDLPP::Visitor &visitor) override;
|
||||
void setMovementDir(bool left);
|
||||
|
||||
private:
|
||||
double jump_movement;
|
||||
bool jumping = false;
|
||||
|
@ -11,7 +11,8 @@ public:
|
||||
uint8_t modifier_data, const std::string &modifier_text);
|
||||
MapObject(uint16_t terrain_id, LandType::Value terrain_type,
|
||||
uint8_t character_id, LandType::Value character_type,
|
||||
uint32_t modifier_id, uint8_t modifier_data, const std::string &modifier_text);
|
||||
uint32_t modifier_id, uint8_t modifier_data,
|
||||
const std::string &modifier_text);
|
||||
void setTerrain(uint16_t id, LandType::Value land_type);
|
||||
void setTerrain(uint16_t id, uint8_t land_type);
|
||||
void setCharacter(uint8_t id, LandType::Value land_type);
|
||||
|
@ -12,8 +12,10 @@
|
||||
|
||||
class Mario : public MarioBlock {
|
||||
public:
|
||||
Mario(int x, int y, const std::shared_ptr<SDLPP::Renderer> &renderer, std::function<void(std::shared_ptr<MarioBlock>&, bool)> addObject);
|
||||
Mario(const std::shared_ptr<SDLPP::Renderer> &renderer, std::function<void(std::shared_ptr<MarioBlock>&, bool)> addObject);
|
||||
Mario(int x, int y, const std::shared_ptr<SDLPP::Renderer> &renderer,
|
||||
std::function<void(std::shared_ptr<MarioBlock> &, bool)> addObject);
|
||||
Mario(const std::shared_ptr<SDLPP::Renderer> &renderer,
|
||||
std::function<void(std::shared_ptr<MarioBlock> &, bool)> addObject);
|
||||
void walkLeft();
|
||||
void walkRight();
|
||||
void setStanding();
|
||||
@ -23,8 +25,9 @@ public:
|
||||
void uncrouch();
|
||||
#ifndef EDITOR
|
||||
void fire();
|
||||
void setAddObjFunc(std::function<void(std::shared_ptr<MarioBlock>&, bool)> func);
|
||||
std::function<void(std::shared_ptr<MarioBlock>&, bool)> getAddObjFunc();
|
||||
void setAddObjFunc(
|
||||
std::function<void(std::shared_ptr<MarioBlock> &, bool)> func);
|
||||
std::function<void(std::shared_ptr<MarioBlock> &, bool)> getAddObjFunc();
|
||||
#endif
|
||||
void stopJump();
|
||||
void custom_move(int ticks) override;
|
||||
@ -65,7 +68,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
std::function<void(std::shared_ptr<MarioBlock>&, bool)> _addObject;
|
||||
std::function<void(std::shared_ptr<MarioBlock> &, bool)> _addObject;
|
||||
void setDeath(bool dead = true) {
|
||||
_death = dead;
|
||||
}
|
||||
|
@ -19,8 +19,7 @@ createEditorMainMenuScene(std::shared_ptr<SDLPP::Renderer> &renderer,
|
||||
SceneStruct
|
||||
createEditorFileChoiceScene(std::shared_ptr<SDLPP::Renderer> &renderer);
|
||||
|
||||
SceneStruct
|
||||
createTextScene(std::shared_ptr<SDLPP::Renderer> renderer,
|
||||
SceneStruct createTextScene(std::shared_ptr<SDLPP::Renderer> renderer,
|
||||
std::function<void(const std::string &)> finalizer);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user