Moved code from card to poker

This commit is contained in:
2021-05-16 21:01:36 -07:00
parent 43155c4e36
commit fbd00b1bc2
36 changed files with 9 additions and 9 deletions

40
src/poker/action/action.h Normal file
View File

@ -0,0 +1,40 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include <dawn/dawn.h>
/**
* Initializes the action manager.
*/
void holdemActionInit();
/**
* Adds an action to the action queue.
*
* @param action Action to add to the queue.
* @returns The index of the action within the queue, or -1 if failure occured.
*/
int32_t holdemActionAdd(holdemaction_t action);
/**
* Removes an action from the action queue.
*
* @param index Action to remove (by index in the queue).
*/
void holdemActionRemove(int32_t index);
/**
* Updates the action manager, which (in turn) updates all actions that are
* currently running.
*/
void holdemActionUpdate();
/**
* Cleans up the action manager and all actions.
*/
void holdemActionDispose();