embedded-software
reusable software modules for embedded systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linked_char_object_t Struct Reference

Linkable Char Object. More...

#include <game.h>

Data Fields

char c
 Displayed character ("sprite") More...
 
char x
 x position (increasing from left to right) More...
 
char y
 y position (increasing from top to bottom) More...
 
char x_next_node
 x coordinate of next node in the list More...
 
char y_next_node
 y coordinate of next node in the list More...
 
int first
 flag to keep track of the first node in the list (i.e. 1 if first 0 if not) More...
 
int last
 flag to keep track of the last node in the list (i.e. 1 if last 0 if not) More...
 
int data
 additional data the node will hold. Usage depends on implementation. More...
 
char status
 Status of object. Usage depends on implementation. More...
 

Detailed Description

Linkable Char Object.

Reusable char object that can be used to create a linked list of char objects Variation of char_object_t Each object (node) will know the x and y coordinates of itself and the following node in the list Flags 'first' and 'last' are used to keep track of the starting and ending node in the list 'status' and 'data' are additional parameters used to hold misc. information, depending on the application of the list

Field Documentation

char c

Displayed character ("sprite")

int data

additional data the node will hold. Usage depends on implementation.

int first

flag to keep track of the first node in the list (i.e. 1 if first 0 if not)

int last

flag to keep track of the last node in the list (i.e. 1 if last 0 if not)

char status

Status of object. Usage depends on implementation.

char x

x position (increasing from left to right)

char x_next_node

x coordinate of next node in the list

char y

y position (increasing from top to bottom)

char y_next_node

y coordinate of next node in the list


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