helapordo 1.4.12
Loading...
Searching...
No Matches
turn_op.h File Reference
#include "game_debug.h"
#include "game_fight.h"
#include "saves.h"
#include "../ser/ser_core.h"
Include dependency graph for turn_op.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OP_res turnOP (turnOption_OP op, turnOP_args *args, Koliseo *kls, Koliseo_Temp *t_kls)
 Takes a turnOption_OP and a pointer to a turnOP_args struct.
 

Function Documentation

◆ turnOP()

OP_res turnOP ( turnOption_OP op,
turnOP_args * args,
Koliseo * kls,
Koliseo_Temp * t_kls )

Takes a turnOption_OP and a pointer to a turnOP_args struct.

Logs a warning for any NULL field in the struct. Performs the defined turn operation, before returning an OP_res.

Parameters
opThe kind of operation to do.
argsStruct containing needed args for current operation. Can have some fields uninitialised, if not relevant to requested turnOP.
klsThe Koliseo used for allocations.
t_klsThe Koliseo_Temp used for temporary allocations.
Returns
An OP_res representing result of turn option operation.
See also
turnOP_args
turnOption_OP
OP_res