Just writing code nothing special.
This commit is contained in:
@ -37,7 +37,10 @@
|
||||
// Game Logic
|
||||
#include "game/game.h"
|
||||
|
||||
#include "game/dawn/dawngame.h"
|
||||
|
||||
#include "game/poker/pokergame.h"
|
||||
#include "game/poker/pokerdiscussion.h"
|
||||
#include "game/poker/pokergameassets.h"
|
||||
|
||||
// Player Input
|
||||
|
@ -4,6 +4,9 @@
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#pragma once
|
||||
#include "../libs.h"
|
||||
|
||||
/** Prefix of all asset load methods, may be customizable in future. */
|
||||
#define ASSET_PREFIX "../assets/"
|
||||
#define ASSET_PREFIX "../assets/"
|
||||
|
||||
typedef FILE assetbuffer_t;
|
@ -7,8 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
#include "../../vn/vncharacter.h"
|
||||
|
||||
typedef struct {
|
||||
char *bruh;
|
||||
} pokercharacters_t;
|
||||
|
||||
} dawngame_t;
|
@ -9,6 +9,8 @@
|
||||
|
||||
#if SETTING_GAME == SETTING_GAME_POKER
|
||||
#include "poker/pokergame.h"
|
||||
#elif SETTING_GAME == SETTING_GAME_DAWN
|
||||
#include "dawn/dawngame.h"
|
||||
#endif
|
||||
|
||||
/** Describes the current game */
|
||||
@ -20,5 +22,7 @@ typedef struct {
|
||||
|
||||
#if SETTING_GAME == SETTING_GAME_POKER
|
||||
pokergame_t pokerGame;
|
||||
#elif SETTING_GAME == SETTING_GAME_DAWN
|
||||
dawngame_t dawnGame;
|
||||
#endif
|
||||
} game_t;
|
30
include/dawn/game/poker/pokerdiscussion.h
Normal file
30
include/dawn/game/poker/pokerdiscussion.h
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
#include "pokergame.h"
|
||||
|
||||
#define POKER_DISCUSSION_MESSAGE_COUNT_MAX 32
|
||||
|
||||
#define POKER_DISCUSSION_REASON_TEST 0x00
|
||||
|
||||
#define POKER_DISCUSSION_REASON_MATCH_START 0x01
|
||||
#define POKER_DISCUSSION_REASON_ROUND_START 0x02
|
||||
#define POKER_DISCUSSION_REASON_BLINDS_TAKEN 0x03
|
||||
|
||||
typedef struct {
|
||||
pokergame_t *poker;
|
||||
uint8_t reason;
|
||||
uint8_t playerCause;
|
||||
uint8_t playerTarget;
|
||||
} pokerdiscussiondata_t;
|
||||
|
||||
typedef struct {
|
||||
char *messages[POKER_DISCUSSION_MESSAGE_COUNT_MAX];
|
||||
uint8_t count;
|
||||
} pokerdiscussion_t;
|
@ -8,6 +8,7 @@
|
||||
|
||||
// Game Definitions
|
||||
#define SETTING_GAME_POKER 1
|
||||
#define SETTING_GAME_DAWN 2
|
||||
|
||||
// Settings
|
||||
#define SETTING_GAME SETTING_GAME_POKER
|
||||
#define SETTING_GAME SETTING_GAME_DAWN
|
Reference in New Issue
Block a user