2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
16 class TAGUA_EXPORT PathInfo
{
26 Direction m_direction
;
30 PathInfo(Direction direction
, int num_obstacles
);
32 Direction
direction() const { return m_direction
; }
33 bool parallel() const { return m_direction
== Horizontal
|| m_direction
== Vertical
; }
34 bool diagonal() const { return m_direction
== Diagonal1
|| m_direction
== Diagonal2
; }
35 bool clear() const { return m_num_obstacles
== 0; }
36 int numObstacles() const { return m_num_obstacles
; }
37 bool valid() const { return m_direction
!= Undefined
; }