#include <assembly.h>
Public Member Functions | |
placement_c (unsigned char tran, int x, int y, int z) | |
initialize placement with given values | |
placement_c (const placement_c *orig) | |
copy constructor | |
placement_c (const placement_c &orig) | |
copy constructor | |
int | getX (void) const |
get x position of piece | |
int | getY (void) const |
get y position of piece | |
int | getZ (void) const |
get z position of piece | |
unsigned char | getTransformation (void) const |
get transformation of piece | |
bool | operator== (const placement_c &b) const |
check if 2 placements are identical | |
placement_c & | operator= (const placement_c &b) |
assignment operation | |
bool | operator< (const placement_c &b) const |
comparison operation, this is an arbitrary oerder for placements | |
Public Attributes | |
unsigned char | transformation |
the transformation of the piece. | |
int | xpos |
position of the hotspot of the piece | |
int | ypos |
int | zpos |
That is the position and the orientation of that piece Only internally used in assembly
placement_c::placement_c | ( | unsigned char | tran, | |
int | x, | |||
int | y, | |||
int | z | |||
) | [inline] |
initialize placement with given values
placement_c::placement_c | ( | const placement_c * | orig | ) | [inline] |
copy constructor
placement_c::placement_c | ( | const placement_c & | orig | ) | [inline] |
copy constructor
unsigned char placement_c::getTransformation | ( | void | ) | const [inline] |
int placement_c::getX | ( | void | ) | const [inline] |
int placement_c::getY | ( | void | ) | const [inline] |
int placement_c::getZ | ( | void | ) | const [inline] |
bool placement_c::operator< | ( | const placement_c & | b | ) | const [inline] |
comparison operation, this is an arbitrary oerder for placements
References transformation, xpos, ypos, and zpos.
placement_c& placement_c::operator= | ( | const placement_c & | b | ) | [inline] |
bool placement_c::operator== | ( | const placement_c & | b | ) | const [inline] |
unsigned char placement_c::transformation |
the transformation of the piece.
if transformation is equal to UNPLACED_TRANS then the piece in NOT placed inside the assembly
Referenced by getTransformation(), operator<(), operator=(), and operator==().
position of the hotspot of the piece
Referenced by getX(), operator<(), operator=(), and operator==().
Referenced by getY(), operator<(), operator=(), and operator==().
Referenced by getZ(), operator<(), operator=(), and operator==().