nSnake
A ncurses implementation of the classic Snake game
 All Data Structures Files Functions Variables Enumerations Macros Pages
Data Fields
fruit_t Struct Reference

The fruit structure. More...

#include <fruit.h>

Data Fields

int x
 x position of the fruit on stage
 
int y
 y position of the fruit on stage
 
int bonus
 Bonus that the fruit adds to the score when eaten.
 

Detailed Description

The fruit structure.

Each fruit has it x and y positions and a bonus score - indicating how many extra points will be rewarded to the snake when it eats the fruit.

Definition at line 39 of file fruit.h.


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