From 47904bc7b2992189bb554833f00a79ff0fea9fb8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 6 Aug 2010 13:13:25 +0000 Subject: SWORD25: Mass-astyle. svn-id: r53222 --- engines/sword25/math/walkregion.h | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'engines/sword25/math/walkregion.h') diff --git a/engines/sword25/math/walkregion.h b/engines/sword25/math/walkregion.h index 6b06c8ed30..f23044ecef 100644 --- a/engines/sword25/math/walkregion.h +++ b/engines/sword25/math/walkregion.h @@ -23,7 +23,7 @@ * */ -/* +/* * This code is based on Broken Sword 2.5 engine * * Copyright (c) Malte Thiesen, Daniel Queteschiner and Michael Elsdoerfer @@ -73,31 +73,35 @@ public: * may lie outside the region. Int his case, the end is chosen as the cloest point to it * that lies within the region. * - * @param X1 X Co-ordinate of the start point - * @param Y1 Y Co-ordinate of the start point - * @param X2 X Co-ordinate of the end point - * @param Y2 Y Co-ordinate of the end point - * @param Path An empty BS_Path that will be set to the resulting path - * @return Returns false if the result is invalid, otherwise returns true. + * @param X1 X Co-ordinate of the start point + * @param Y1 Y Co-ordinate of the start point + * @param X2 X Co-ordinate of the end point + * @param Y2 Y Co-ordinate of the end point + * @param Path An empty BS_Path that will be set to the resulting path + * @return Returns false if the result is invalid, otherwise returns true. */ - bool QueryPath(int X1, int Y1, int X2, int Y2, BS_Path &Path) { + bool QueryPath(int X1, int Y1, int X2, int Y2, BS_Path &Path) { return QueryPath(BS_Vertex(X1, Y1), BS_Vertex(X2, Y2), Path); } /** * Get the shortest path between two points in the region. * - * @param StartPoint The start point - * @param EndPoint The end point - * @param Path An empty BS_Path that will be set to the resulting path - * @return Returns false if the result is invalid, otherwise returns true. + * @param StartPoint The start point + * @param EndPoint The end point + * @param Path An empty BS_Path that will be set to the resulting path + * @return Returns false if the result is invalid, otherwise returns true. */ - bool QueryPath(BS_Vertex StartPoint, BS_Vertex EndPoint, BS_Path & Path); + bool QueryPath(BS_Vertex StartPoint, BS_Vertex EndPoint, BS_Path &Path); virtual void SetPos(int X, int Y); - const Common::Array &GetNodes() const { return m_Nodes; } - const Common::Array< Common::Array > &GetVisibilityMatrix() const { return m_VisibilityMatrix; } + const Common::Array &GetNodes() const { + return m_Nodes; + } + const Common::Array< Common::Array > &GetVisibilityMatrix() const { + return m_VisibilityMatrix; + } virtual bool Persist(BS_OutputPersistenceBlock &Writer); virtual bool Unpersist(BS_InputPersistenceBlock &Reader); -- cgit v1.2.3