2020-01-23 19:54:19 +01:00
|
|
|
#ifndef TUYAU_H
|
2020-02-16 20:43:35 +01:00
|
|
|
#define TUYAU_H
|
2020-01-23 19:54:19 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
typedef struct
|
2020-01-23 19:54:19 +01:00
|
|
|
{
|
|
|
|
int x, y; // En cases de 8*8
|
|
|
|
int tx, ty; // Targeted coords
|
2020-01-24 12:08:40 +01:00
|
|
|
int key; // Key used (may be -1 if the user doesn't have to press any key)
|
2020-01-23 19:54:19 +01:00
|
|
|
} teleport_t;
|
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
void teleportersSet(teleport_t const * const t, unsigned int const n);
|
2020-01-23 19:54:19 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
void teleportersActive(); // Activation des teleporteurs à chaque frame
|
2020-01-23 19:54:19 +01:00
|
|
|
|
2020-02-16 20:43:35 +01:00
|
|
|
#endif
|