diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-25 11:13:18 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-25 11:13:18 +0000 |
commit | 137d900672cf15df2d5f3cf5988aff20d33620f7 (patch) | |
tree | ee5e26fe0d672f0cfa3c1faf5a4fda4d31ff5840 /crawl-ref/source/format.h | |
parent | c5ab08484a85c0f7f25bd8199d0e1c688e08eba3 (diff) | |
download | crawl-ref-137d900672cf15df2d5f3cf5988aff20d33620f7.tar.gz crawl-ref-137d900672cf15df2d5f3cf5988aff20d33620f7.zip |
[1801838] Use a menu to show mutation list so long lists don't scroll off the end of the terminal.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3331 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/format.h')
-rw-r--r-- | crawl-ref/source/format.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/format.h b/crawl-ref/source/format.h index 6376849b27..700f958af6 100644 --- a/crawl-ref/source/format.h +++ b/crawl-ref/source/format.h @@ -40,6 +40,7 @@ public: std::string::size_type length() const; std::string html_dump() const; + bool operator < ( const formatted_string &other ) const; const formatted_string &operator += (const formatted_string &other); public: @@ -59,7 +60,6 @@ private: int find_last_colour() const; public: - struct fs_op { fs_op_type type; @@ -89,7 +89,8 @@ public: void display() const; }; - std::vector<fs_op> ops; + typedef std::vector<fs_op> oplist; + oplist ops; }; int count_linebreaks(const formatted_string& fs); |