#include <position_info.h>
Public Attributes | |
bool | valid |
bool | supported |
const Item * | land |
const Item * | roof |
const Item * | blocker |
Position information for a desired target box for an item. The position is valid when the target box does not collide with any solid items.
Land is set to the item with the highest z coordinate under the target box, or null if there is no land below box.
Roof is set to the item with the lowest z coordinate over the target box, or null if there is no roof above box.
Blocker is set to an item blocking the target box, or null if there is no such item.
Supported is true if the land is appropriate to support the item when at the target.