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));
84 void singleDetect(
Entity *e);
90 void deleteEntities(
void);
96 unsigned int lineCount;
125 std::vector<NPC *> npc;
126 std::vector<Structures *> build;
127 std::vector<Mob *> mob;
128 std::vector<Entity *> entity;
129 std::vector<Object *> object;
131 void addStructure(_TYPE t,
float x,
float y,
World *outside,
World *inside);
132 void addMob(
int t,
float x,
float y);
133 void addMob(
int t,
float x,
float y,
void (*hey)(
Mob *));
134 void addNPC(
float x,
float y);
135 void addObject(ITEM_ID,
bool,
const char *,
float,
float);
137 void update(
Player *p,
unsigned int delta);
144 virtual ~
World(
void);
151 virtual void generate(
unsigned int width);
152 void generateFunc(
unsigned int width,
float(*func)(
float));
164 void setBGM(
const char *path);
172 void addLayer(
unsigned int width);
179 virtual void draw(
Player *p);
209 void addHole(
unsigned int start,
unsigned int end);
215 int getTheWidth(
void);
225 float worldGetYBase(
World *w);
237 void generate(
unsigned int width);
252 extern int worldShade;
Definition: entities.h:127
WEATHER
Definition: world.h:38
float y
Definition: world.h:51
struct line_t * line
Definition: world.h:70
Definition: entities.h:37
unsigned char color
Definition: world.h:54
float y
Definition: world.h:88
float gh[2]
Definition: world.h:53
int x_start
Definition: world.h:78
bool gs
Definition: world.h:52
Definition: entities.h:94
WORLD_BG_TYPE
Definition: world.h:27