diff options
author | Eugene Sandulenko | 2010-08-18 12:57:47 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:55:59 +0000 |
commit | be44216e5c1d74879d7843215ce1cd3f488b4db8 (patch) | |
tree | cd49961f2fe9b1ea641e2e57d90b3d8a315123ea /engines/sword25/math/walkregion.h | |
parent | 485ff15d23b3ae9545f5c9df794f1326185eae7a (diff) | |
download | scummvm-rg350-be44216e5c1d74879d7843215ce1cd3f488b4db8.tar.gz scummvm-rg350-be44216e5c1d74879d7843215ce1cd3f488b4db8.tar.bz2 scummvm-rg350-be44216e5c1d74879d7843215ce1cd3f488b4db8.zip |
SWORD25: eliminated BS_ prefix in all but kernel/
svn-id: r53259
Diffstat (limited to 'engines/sword25/math/walkregion.h')
-rw-r--r-- | engines/sword25/math/walkregion.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/sword25/math/walkregion.h b/engines/sword25/math/walkregion.h index f23044ecef..fd71ade981 100644 --- a/engines/sword25/math/walkregion.h +++ b/engines/sword25/math/walkregion.h @@ -45,7 +45,7 @@ namespace Sword25 { // Type definitions // ----------------------------------------------------------------------------- -typedef Common::Array<BS_Vertex> BS_Path; +typedef Common::Array<Vertex> BS_Path; // ----------------------------------------------------------------------------- // Class definitions @@ -54,17 +54,17 @@ typedef Common::Array<BS_Vertex> BS_Path; /** * This class represents the region in which the main character can move */ -class BS_WalkRegion : public BS_Region { - friend class BS_Region; +class WalkRegion : public Region { + friend class Region; protected: - BS_WalkRegion(); - BS_WalkRegion(BS_InputPersistenceBlock &Reader, unsigned int Handle); + WalkRegion(); + WalkRegion(BS_InputPersistenceBlock &Reader, unsigned int Handle); public: - virtual ~BS_WalkRegion(); + virtual ~WalkRegion(); - virtual bool Init(const BS_Polygon &Contour, const Common::Array<BS_Polygon> *pHoles = 0); + virtual bool Init(const Polygon &Contour, const Common::Array<Polygon> *pHoles = 0); /** * Get the shortest path between two points in the region @@ -81,7 +81,7 @@ public: * @return Returns false if the result is invalid, otherwise returns true. */ bool QueryPath(int X1, int Y1, int X2, int Y2, BS_Path &Path) { - return QueryPath(BS_Vertex(X1, Y1), BS_Vertex(X2, Y2), Path); + return QueryPath(Vertex(X1, Y1), Vertex(X2, Y2), Path); } /** @@ -92,11 +92,11 @@ public: * @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(Vertex StartPoint, Vertex EndPoint, BS_Path &Path); virtual void SetPos(int X, int Y); - const Common::Array<BS_Vertex> &GetNodes() const { + const Common::Array<Vertex> &GetNodes() const { return m_Nodes; } const Common::Array< Common::Array<int> > &GetVisibilityMatrix() const { @@ -107,13 +107,13 @@ public: virtual bool Unpersist(BS_InputPersistenceBlock &Reader); private: - Common::Array<BS_Vertex> m_Nodes; + Common::Array<Vertex> m_Nodes; Common::Array< Common::Array<int> > m_VisibilityMatrix; void InitNodeVector(); void ComputeVisibilityMatrix(); - bool CheckAndPrepareStartAndEnd(BS_Vertex &Start, BS_Vertex &End) const; - bool FindPath(const BS_Vertex &Start, const BS_Vertex &End, BS_Path &Path) const; + bool CheckAndPrepareStartAndEnd(Vertex &Start, Vertex &End) const; + bool FindPath(const Vertex &Start, const Vertex &End, BS_Path &Path) const; }; } // End of namespace Sword25 |