int main() {
//Tile object
Tile tiles[529];
//Set the current gamestate object
GameState* currentState = new Level_One( event, STATE_EXIT, camera, screen, nextState, LEVEL_WIDTH );
currentState->set_Tiles( tiles ); // error
}
#ifndef LEVELONE_H
#define LEVELONE_H
#include "GameState.h"
class Level_One : public GameState {
// Irrelevant things
public:
Level_One( SDL_Event, int, SDL_Rect, SDL_Surface*, int, int );
~Level_One();
void set_Tiles( Tile[] );
};
#endif
The error says this:
error C2061: syntax error : identifier 'Tile'
Can someone please tell me how to pass this array of objects correctly and how to pass objects in functions correctly?