OSDN Git Service

Square::IsWall() を実装。 / Implement Square::IsWall().
authorDeskull <desull@users.sourceforge.jp>
Thu, 8 Jan 2015 13:02:32 +0000 (22:02 +0900)
committerDeskull <desull@users.sourceforge.jp>
Thu, 8 Jan 2015 13:02:32 +0000 (22:02 +0900)
Deeangband/Square.cpp
Deeangband/Square.h

index 041bacb..1723f2b 100644 (file)
@@ -54,4 +54,10 @@ namespace Deeangband
                return NULL;
        }
 
-}
\ No newline at end of file
+       bool Square::IsWall(void)
+       {
+               return this->floorTag == "VANILLA_PERMANENT_WALL";
+       }
+
+}
+
index 43cb21d..182da6f 100644 (file)
@@ -86,11 +86,18 @@ namespace Deeangband
                TAG GetSpaceTag(void);
 
                /*!
-               * @brief \91Î\89\9e\82·\82é\92n\8c`\82Ì\83|\83C\83\93\83^\82ð\95Ô\82·\81B
-               * @return \91Î\89\9e\82·\82é\92n\8c`\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
-               */
+                * @brief \91Î\89\9e\82·\82é\92n\8c`\82Ì\83|\83C\83\93\83^\82ð\95Ô\82·\81B
+                * @return \91Î\89\9e\82·\82é\92n\8c`\82Ì\8eQ\8fÆ\83|\83C\83\93\83^
+                */
                Floor* GetFloorPtr(void);
 
+               /*!
+                * @brief \92n\8c`\82ª\95Ç\82Å\8eÕ\95Á\82³\82ê\82Ä\82¢\82é\82©\82ð\95Ô\82·
+                * @return \8eÕ\95Á\82³\82ê\82Ä\82¢\82é\82È\82ç\82Πtrue
+                */
+               bool Square::IsWall(void);
+
+
        };
 
 }