diff options
author | Neil Moore <neil@s-z.org> | 2012-09-08 15:37:08 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-09-08 16:17:20 -0400 |
commit | a7be0a1fa2a1e1523c8c2594b2b7608f582f14d1 (patch) | |
tree | d8273b93586a9ea5374382ef997c4c56d15f5e7b /crawl-ref/source/env.h | |
parent | c3456a1f7d88e0cb56ef736a5cdbcd988a48b13a (diff) | |
download | crawl-ref-a7be0a1fa2a1e1523c8c2594b2b7608f582f14d1.tar.gz crawl-ref-a7be0a1fa2a1e1523c8c2594b2b7608f582f14d1.zip |
Object-orient final_effect.
This is mostly to avoid the bit-packing of the previous commit.
Admittedly, it's a bit overkill for that.
This could probably use some cleanup: currently we store attacker,
defender, and position in the base class, even though not all subclasses
have those.
Diffstat (limited to 'crawl-ref/source/env.h')
-rw-r--r-- | crawl-ref/source/env.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/env.h b/crawl-ref/source/env.h index 4624153173..c2dcc8b701 100644 --- a/crawl-ref/source/env.h +++ b/crawl-ref/source/env.h @@ -15,6 +15,7 @@ typedef set<string> string_set; struct vault_placement; typedef vector<vault_placement*> vault_placement_refv; +class final_effect; struct crawl_environment { colour_t rock_colour; @@ -116,7 +117,7 @@ struct crawl_environment map<mid_t, unsigned short> mid_cache; // Temp stuff. - vector<final_effect> final_effects; + vector<final_effect *> final_effects; }; #ifdef DEBUG_GLOBALS |