Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Files Functions Variables Typedefs Macros Groups
Data Fields
GAME_ENV Struct Reference
GAMES: game utilities

`#include <n_games.h>`

Collaboration diagram for GAME_ENV:
[legend]

## Data Fields

int | score
int | lifes
int | BLUR
int | fade_value
int | DONE
int | GFX_CONFIG_MODE
int | CPU_MODE
int | loop_time
int | draw_time
int | logic_time
int | nb_min_particles
int | wait_for_slowing_down_cpu
int | GFX_UPDATE_RATE
int | LOGIC_RATE
int | real_framerate
int | level
int | x
int | y
int | z
int | left_attack
int | right_attack
int | left_attack_pos
int | right_attack_pos
BITMAP * | scrbuf
N_TIME | game_timer

## Detailed Description

Game Environment structure

Definition at line 40 of file n_games.h.

## Field Documentation

int BLUR

wanna blur effect ? ( 0 or 1 )

Definition at line 43 of file n_games.h.

int CPU_MODE

status of the cpu mode , CPU_USE_FULL by default

Definition at line 43 of file n_games.h.

int DONE

loop while DONE != 1

Definition at line 43 of file n_games.h.

int draw_time

time before updating graphics in usec

Definition at line 43 of file n_games.h.

int fade_value

alpha value of black blit ( 20 default )

Definition at line 43 of file n_games.h.

N_TIME game_timer

TIMER

Definition at line 92 of file n_games.h.

int GFX_CONFIG_MODE

GFX_OPENGL_WINDOWED

Definition at line 43 of file n_games.h.

int GFX_UPDATE_RATE

time between two graphic frames 20000 default

Definition at line 43 of file n_games.h.

int left_attack

left attack trigger

Definition at line 43 of file n_games.h.

int left_attack_pos

left attack trigger

Definition at line 43 of file n_games.h.

int level

Level number

Definition at line 43 of file n_games.h.

int lifes

Remainging lives

Definition at line 43 of file n_games.h.

int LOGIC_RATE

time between two logic frames 20000 default

Definition at line 43 of file n_games.h.

int logic_time

time before a new logic update is done

Definition at line 43 of file n_games.h.

int loop_time

time between each loop

Definition at line 43 of file n_games.h.

int nb_min_particles

time before a new logic update is done

Definition at line 43 of file n_games.h.

int real_framerate

Measured framerate

Definition at line 43 of file n_games.h.

int right_attack

left attack trigger

Definition at line 43 of file n_games.h.

int right_attack_pos

left attack trigger

Definition at line 43 of file n_games.h.

int score

Store score value

Definition at line 43 of file n_games.h.

BITMAP* scrbuf

screen buffer

Definition at line 90 of file n_games.h.

int wait_for_slowing_down_cpu

=0 for doing nothing, =1 if logic is done, = 2 if drawing is done too

Definition at line 43 of file n_games.h.

int x

position x

Definition at line 43 of file n_games.h.

int y

position y

Definition at line 43 of file n_games.h.

int z

position z

Definition at line 43 of file n_games.h.

The documentation for this struct was generated from the following file:

- include/n_games.h