Refactoring some of the poker game logic again.

This commit is contained in:
2021-07-27 09:49:54 -07:00
parent a63c9d898b
commit 54559e761c
36 changed files with 99 additions and 304 deletions

34
temp/render/player.h Normal file
View File

@ -0,0 +1,34 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include <dawn/dawn.h>
#include "../../file/asset.h"
#include "../../display/shader.h"
#include "../../display/primitive.h"
#include "../../display/tileset.h"
#include "../../display/primitives/quad.h"
/**
* Initializes the player renderer.
* @param poker Poker game context.
*/
void pokerPlayerInit(poker_t *poker);
/**
* Returns the seat index for a given player.
* @param player Player to get the seat for.
* @return Seat ID for the given player.
*/
uint8_t pokerPlayerGetSeatForPlayer(uint8_t player);
/**
* Render's a player at a seat.
* @param poker Poker game context.
* @param seat Seat to render the player at.
*/
void pokerPlayerRender(poker_t *poker, pokerplayer_t *player, uint8_t seat);