Moved code from card to poker
This commit is contained in:
40
src/poker/action/action.h
Normal file
40
src/poker/action/action.h
Normal 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();
|
Reference in New Issue
Block a user