Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RogueReborn
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mikhail Andrenkov
RogueReborn
Commits
ab41faa2
Commit
ab41faa2
authored
8 years ago
by
Ian Prins
Browse files
Options
Downloads
Patches
Plain Diff
implement terrain.h (last didn't go through)
parent
0636da13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/terrain.h
+4
-3
4 additions, 3 deletions
src/include/terrain.h
src/terrain.cpp
+9
-2
9 additions, 2 deletions
src/terrain.cpp
with
13 additions
and
5 deletions
src/include/terrain.h
+
4
−
3
View file @
ab41faa2
...
...
@@ -5,8 +5,9 @@
class
Terrain
{
public:
static
enum
Passability
{
Blocked
,
Passable
};
static
enum
Visibility
{
Blocked
,
Corridor
,
Transparent
};
enum
Passability
{
P_Blocked
,
Passable
};
enum
Visibility
{
Opaque
,
Corridor
,
Transparent
};
Terrain
(
char
,
Visibility
,
Passability
);
char
getChar
();
Passability
isPassable
();
Visibility
getVisibility
();
...
...
@@ -14,6 +15,6 @@ class Terrain {
char
character
;
Visibility
visible
;
Passability
passable
;
}
}
;
#endif
This diff is collapsed.
Click to expand it.
src/terrain.cpp
+
9
−
2
View file @
ab41faa2
...
...
@@ -6,7 +6,14 @@ Terrain::Terrain(char character, Terrain::Visibility vis, Terrain::Passability p
,
passable
(
pass
)
{}
char
Terrain
::
getChar
()
{
return
character
;
}
Terrain
::
Passability
Terrain
::
isPassable
()
{
return
passable
;
return
arglebargle
;
}
\ No newline at end of file
}
Terrain
::
Visibility
Terrain
::
getVisibility
()
{
return
visible
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment