Add PathPos::is_valid_tile and PathPos::is_valid
commit07b4b66bcbf9d74ab7bd71249c8f1b820cd64a1b
authorcirdan <cirdansw@gmail.com>
Sun, 16 Feb 2014 20:38:25 +0000 (16 21:38 +0100)
committercirdan <cirdansw@gmail.com>
Sun, 16 Feb 2014 20:38:25 +0000 (16 21:38 +0100)
tree4d610cdae465cb1d5de56fd0b881d56a045a7590
parent06babecf360b988733158c15fbd1996f5cc876eb
Add PathPos::is_valid_tile and PathPos::is_valid

Add methods PathPos::is_valid_tile and PathPos::is_valid to check
whether a PathPos has had its tile initialised or has been fully
initialised, respectively.
src/pathfinder/pos.h
src/pathfinder/yapf/yapf_rail.cpp
src/pbs.cpp
src/train_cmd.cpp