Direction is an integer type used to represent the Cartesian directions etc. Currently it is a typedef to char which is limited to the range (0, 255) which should be adequate.