borgware-2d/games/tetris/variant_fp.h

46 lines
1005 B
C
Raw Normal View History

#ifndef VARIANT_FP_H_
#define VARIANT_FP_H_
2010-08-24 23:00:40 +00:00
#include <stdint.h>
2010-08-28 15:13:35 +00:00
#include "highscore.h"
#include "variants.h"
#include "input.h"
/***************
* entry point *
***************/
/**
* runs the First Person Tetris game
*/
void tetris_fp(void);
2010-08-24 23:00:40 +00:00
tetris_variant_t const tetrisFpVariant;
/*********************
* get/set functions *
*********************/
/**
* retrieves the variant's highscore index
* @param pVariantData the variant data object we want information from
*/
tetris_highscore_index_t tetris_fp_getHighscoreIndex(void *pVariantData);
2011-03-07 00:32:38 +00:00
/**
* inform the First Person Tetris instance about the player's last input
* @param pVariantData the First Person Tetris data object we want to modify
* @param inCmd the last issued command
* @param bMoveOk 1 if the last move was possible, otherwise 0
*/
void tetris_fp_setLastInput(void *pVariantData,
2011-03-07 00:32:38 +00:00
tetris_input_command_t inCmd,
uint8_t bMoveOk);
#endif /*VARIANT_FP_H_*/