#include "engine.h" #ifndef STONE_H #define STONE_H struct StoneBlock : public GameObject { const char *texfile = "brick.jpg"; float cube_size = 1.0f; StoneBlock() : GameObject("StoneBlock") {} bool location_refresh; // initialization: Texture and vertices into memory bool init(); bool in_contact_location(float x, float y, float z, int i); void draw(mat4 vp); // movement: for falling calculations // Returns the effective floor level float find_floor() override; bool dangerous_at(vec4 loc) override; void activate(float, float, float) override; }; #endif