MacLO/src/GameWindow.h

41 lines
1.1 KiB
C
Raw Normal View History

// Copyright (c) Jon Thysell <http://jonthysell.com>
// Licensed under the MIT License.
#ifndef GAMEWINDOW_H
#define GAMEWINDOW_H
#include "MacCommon.h"
#include "WindowBuffer.h"
#include "GameEngine.h"
#include "Bitmaps.h"
2021-11-10 01:01:34 +00:00
#include "Sounds.h"
#include "Scenes.h"
#define WindowPattern black
typedef struct sGameWindow
{
WindowPtr Window;
WindowBuffer WindowBuffer;
GameEngine Engine;
Bitmaps Bitmaps;
Sounds Sounds;
SceneId CurrentSceneId;
TitleScene TitleScene;
LevelSelectScene LevelSelectScene;
PlayScene PlayScene;
LevelEndScene LevelEndScene;
GameEndScene GameEndScene;
} GameWindow;
void GameWindow_Init(GameWindow *pGameWindow);
void GameWindow_Draw(const GameWindow *pGameWindow, bool fullRefresh);
2021-10-20 16:34:31 +00:00
void GameWindow_Click(GameWindow *pGameWindow, const Point *pPosition);
void GameWindow_SetScene(GameWindow *pGameWindow, const SceneId sceneId);
void GameWindow_Show(const GameWindow *pGameWindow);
void GameWindow_ClearScores(GameWindow *pGameWindow);
#endif