14 #define GEN_INC 10 // Defines at what interval y values should be calculated for the array 'line'.
19 #define DAY_CYCLE 3000
55 } __attribute__ ((packed));
137 std::vector<NPC *> npc;
138 std::vector<Structures *> build;
139 std::vector<Mob *> mob;
140 std::vector<Entity *> entity;
141 std::vector<Object *> object;
143 void addStructure(_TYPE t,
float x,
float y,
World *outside,
World *inside);
144 void addMob(
int t,
float x,
float y);
145 void addMob(
int t,
float x,
float y,
void (*hey)(
Mob *));
146 void addNPC(
float x,
float y);
147 void addObject(ITEM_ID,
bool,
const char *,
float,
float);
149 void update(
Player *p,
unsigned int delta);
156 virtual ~
World(
void);
163 virtual void generate(
unsigned int width);
164 void generateFunc(
unsigned int width,
float(*func)(
float));
176 void setBGM(
const char *path);
184 void addLayer(
unsigned int width);
191 virtual void draw(
Player *p);
221 void addHole(
unsigned int start,
unsigned int end);
227 int getTheWidth(
void);
237 float worldGetYBase(
World *w);
249 void generate(
unsigned int width);
264 extern int worldShade;
Definition: entities.h:127
WEATHER
Definition: world.h:38
void deleteEntities(void)
Definition: world.cpp:87
float y
Definition: world.h:51
struct line_t * line
Definition: world.h:70
void singleDetect(Entity *e)
Definition: world.cpp:660
Definition: entities.h:37
unsigned char color
Definition: world.h:54
float y
Definition: world.h:88
float gh[2]
Definition: world.h:53
vec2 * star
Definition: world.h:114
int x_start
Definition: world.h:78
bool gs
Definition: world.h:52
unsigned int lineCount
Definition: world.h:108
Definition: entities.h:94
WORLD_BG_TYPE
Definition: world.h:27