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) |
|
||||||||||||
|
Definition at line 32 of file construct.c. |
|
||||||||||||
|
Definition at line 52 of file construct.c. References direction::x, and direction::y. |
|
||||||||||||
|
Definition at line 63 of file construct.c. References range::max, and range::min. |
|
||||||||||||||||||||
|
Definition at line 41 of file construct.c. References rect::extent, rect::topleft, w, coord::x, and coord::y. |
1.3.6