more reorganization

This commit is contained in:
Sebastian Krzyszkowiak 2012-09-28 16:43:13 +02:00
parent 1f3f99936e
commit 5083033a4b
15 changed files with 22 additions and 22 deletions

View file

@ -17,11 +17,11 @@ SET(SRC_LIST
levels/level4.c levels/level4.c
levels/level5.c levels/level5.c
levels/level6.c levels/level6.c
levels/moonwalk.c levels/actions.c
levels/dodger.c levels/modules/moonwalk.c
levels/actions.c levels/modules/dodger.c
levels/dodger/actions.c levels/modules/dodger/actions.c
levels/dodger/callbacks.c levels/modules/dodger/callbacks.c
) )
find_package(Allegro5 REQUIRED) find_package(Allegro5 REQUIRED)

View file

@ -20,9 +20,9 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "../gamestates/level.h" #include "../gamestates/level.h"
#include "dodger.h"
#include "actions.h" #include "actions.h"
#include "dodger/actions.h" #include "modules/dodger.h"
#include "modules/dodger/actions.h"
void Level1_Load(struct Game *game) { void Level1_Load(struct Game *game) {
Dodger_Load(game); Dodger_Load(game);

View file

@ -20,7 +20,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "../gamestates/level.h" #include "../gamestates/level.h"
#include "moonwalk.h" #include "modules/moonwalk.h"
void Level2_Load(struct Game *game) { void Level2_Load(struct Game *game) {
Moonwalk_Load(game); Moonwalk_Load(game);

View file

@ -20,7 +20,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "../gamestates/level.h" #include "../gamestates/level.h"
#include "moonwalk.h" #include "modules/moonwalk.h"
void Level3_Load(struct Game *game) { void Level3_Load(struct Game *game) {
Moonwalk_Load(game); Moonwalk_Load(game);

View file

@ -20,7 +20,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "../gamestates/level.h" #include "../gamestates/level.h"
#include "moonwalk.h" #include "modules/moonwalk.h"
void Level4_Load(struct Game *game) { void Level4_Load(struct Game *game) {
Moonwalk_Load(game); Moonwalk_Load(game);

View file

@ -20,7 +20,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "../gamestates/level.h" #include "../gamestates/level.h"
#include "moonwalk.h" #include "modules/moonwalk.h"
void Level5_Load(struct Game *game) { void Level5_Load(struct Game *game) {
Moonwalk_Load(game); Moonwalk_Load(game);

View file

@ -20,7 +20,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "../gamestates/level.h" #include "../gamestates/level.h"
#include "moonwalk.h" #include "modules/moonwalk.h"
void Level6_Load(struct Game *game) { void Level6_Load(struct Game *game) {
Moonwalk_Load(game); Moonwalk_Load(game);

View file

@ -20,9 +20,9 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "../gamestates/level.h" #include "../../gamestates/level.h"
#include "../actions.h"
#include "dodger.h" #include "dodger.h"
#include "actions.h"
#include "dodger/actions.h" #include "dodger/actions.h"
void Dodger_Logic(struct Game *game) { void Dodger_Logic(struct Game *game) {

View file

@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../main.h" #include "../../main.h"
void Dodger_Draw(struct Game *game); void Dodger_Draw(struct Game *game);
void Dodger_Logic(struct Game *game); void Dodger_Logic(struct Game *game);

View file

@ -21,8 +21,8 @@
#include "actions.h" #include "actions.h"
#include "callbacks.h" #include "callbacks.h"
#include "../actions.h" #include "../../actions.h"
#include "../../gamestates/level.h" #include "../../../gamestates/level.h"
bool Accelerate(struct Game *game, struct TM_Action *action, enum TM_ActionState state) { bool Accelerate(struct Game *game, struct TM_Action *action, enum TM_ActionState state) {

View file

@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../../main.h" #include "../../../main.h"
#include "../../timeline.h" #include "../../../timeline.h"
/*! \brief Accelerate current speed game until threshold is reached */ /*! \brief Accelerate current speed game until threshold is reached */
bool Accelerate(struct Game *game, struct TM_Action *action, enum TM_ActionState state); bool Accelerate(struct Game *game, struct TM_Action *action, enum TM_ActionState state);

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../../main.h" #include "../../../main.h"
/*! \brief Move up or down until reaching the edge of the screen. After that - change direction. */ /*! \brief Move up or down until reaching the edge of the screen. After that - change direction. */
void Obst_MoveUpDown(struct Game *game, struct Obstacle *obstacle); void Obst_MoveUpDown(struct Game *game, struct Obstacle *obstacle);

View file

@ -20,7 +20,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <math.h> #include <math.h>
#include "../gamestates/level.h" #include "../../gamestates/level.h"
#include "moonwalk.h" #include "moonwalk.h"
void Moonwalk_Logic(struct Game *game) { void Moonwalk_Logic(struct Game *game) {

View file

@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include "../main.h" #include "../../main.h"
void Moonwalk_Draw(struct Game *game); void Moonwalk_Draw(struct Game *game);
void Moonwalk_Logic(struct Game *game); void Moonwalk_Logic(struct Game *game);