Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/construct.c File Reference


Detailed Description

A workaround for compilers without cast-constructors.

Construction is done with a cast constructor in TIGCC/GCC, or with these functions (much slower) anywhere else. Speed only matters on the calc, so nothing is lost this way.

Definition in file construct.c.

#include "crogue.h"

Go to the source code of this file.

Functions

coord construct_coord (uchar x, uchar y)
rect construct_rect (uchar x, uchar y, uchar w, uchar h)
direction construct_direction (schar x, schar y)
range construct_range (uchar max, uchar min)


Function Documentation

coord construct_coord uchar  x,
uchar  y
 

Definition at line 32 of file construct.c.

References coord::x, and coord::y.

direction construct_direction schar  x,
schar  y
 

Definition at line 52 of file construct.c.

References direction::x, and direction::y.

range construct_range uchar  max,
uchar  min
 

Definition at line 63 of file construct.c.

References range::max, and range::min.

rect construct_rect uchar  x,
uchar  y,
uchar  w,
uchar  h
 

Definition at line 41 of file construct.c.

References rect::extent, rect::topleft, w, coord::x, and coord::y.


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6