Even more refactoring.

This commit is contained in:
2021-09-19 22:02:14 -07:00
parent fae6cd04db
commit 9e340328ee
36 changed files with 436 additions and 486 deletions

45
src/game/poker/game.h Normal file
View File

@@ -0,0 +1,45 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "pokergame.h"
#include "../../libs.h"
#include "pokergameassets.h"
#include "../../poker/poker.h"
#include "../../vn/conversation/talk.h"
#include "../../vn/vnscene.h"
#include "../../util/array.h"
#include "pokerui.h"
#include "pokerworld.h"
#include "pokergameaction.h"
/**
* Initializes the game state for the poker game.
*
* @param game Game to initialize.
* @returns True if successful, otherwise false.
*/
bool gameInstanceInit(pokergame_t *game);
/**
* Updates the poker game instance.
* @param game Poker game to update for.
*/
void gameInstanceUpdate(pokergame_t *game);
/**
* Disposes a previously initialized poker game instance.
* @param game Game to dispose.
*/
void gameInstanceDispose(pokergame_t *game);
/**
* Restacks the poker game's stack.
*
* @param game Poker game to restack
*/
void pokerGameQueueRestack(pokergame_t *game);