summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-05-15 23:08:31 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-05-16 13:40:20 +0200
commit74740e6573a16ae5473f5484ab8d988ae4b14c4f (patch)
tree8e10726c7e148fa49a80476ae8441f7d3e12c3d9 /crawl-ref/source/hiscores.h
parent1bf4cb234f080daf574b8c65b167f2c1ba30f6f6 (diff)
downloadcrawl-ref-74740e6573a16ae5473f5484ab8d988ae4b14c4f.tar.gz
crawl-ref-74740e6573a16ae5473f5484ab8d988ae4b14c4f.zip
Make scorefile_entry members private.
That way I'll feel safer changing the meaning of scorefile_entry::cls.
Diffstat (limited to 'crawl-ref/source/hiscores.h')
-rw-r--r--crawl-ref/source/hiscores.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/hiscores.h b/crawl-ref/source/hiscores.h
index 757c8a9418..237ee1f1d8 100644
--- a/crawl-ref/source/hiscores.h
+++ b/crawl-ref/source/hiscores.h
@@ -8,7 +8,7 @@
#ifndef HISCORES_H
#define HISCORES_H
-struct scorefile_entry;
+class scorefile_entry;
void hiscores_new_entry( const scorefile_entry &se );
@@ -62,9 +62,9 @@ private:
mutable xl_map fieldmap;
};
-struct scorefile_entry
+class scorefile_entry
{
-public:
+private:
std::string raw_line;
std::string version;
@@ -145,6 +145,10 @@ public:
std::string death_place(death_desc_verbosity) const;
std::string game_time(death_desc_verbosity) const;
+ long get_score() const { return points; }
+ int get_death_type() const { return death_type; }
+ time_t get_death_time() const { return death_time; }
+
void set_base_xlog_fields() const;
private: