2020-12-18 23:15:29 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "dolphin_deed.h"
|
2021-01-08 07:42:48 +03:00
|
|
|
#include <stdbool.h>
|
2020-12-18 23:15:29 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef struct DolphinState DolphinState;
|
|
|
|
|
|
|
|
DolphinState* dolphin_state_alloc();
|
|
|
|
|
2021-04-13 21:06:25 +03:00
|
|
|
void dolphin_state_free(DolphinState* dolphin_state);
|
2020-12-18 23:15:29 +03:00
|
|
|
|
2021-01-08 07:42:48 +03:00
|
|
|
bool dolphin_state_save(DolphinState* dolphin_state);
|
2020-12-18 23:15:29 +03:00
|
|
|
|
2021-01-08 07:42:48 +03:00
|
|
|
bool dolphin_state_load(DolphinState* dolphin_state);
|
2020-12-18 23:15:29 +03:00
|
|
|
|
|
|
|
void dolphin_state_clear(DolphinState* dolphin_state);
|
|
|
|
|
|
|
|
void dolphin_state_on_deed(DolphinState* dolphin_state, DolphinDeed deed);
|
|
|
|
|
|
|
|
uint32_t dolphin_state_get_icounter(DolphinState* dolphin_state);
|
|
|
|
|
|
|
|
uint32_t dolphin_state_get_butthurt(DolphinState* dolphin_state);
|
2021-03-25 20:48:58 +03:00
|
|
|
|
|
|
|
uint32_t dolphin_state_get_level(DolphinState* dolphin_state);
|
|
|
|
|
|
|
|
uint32_t dolphin_state_xp_to_levelup(DolphinState* dolphin_state, uint32_t level, bool remaining);
|