From 394fb595f6d03fa9d266ed28726975e0b59bc798 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 24 Oct 2009 12:42:13 +0200 Subject: Extract newgame character restrictions from newgame.cc. The functions in the new ng-restr.cc are "pure": They don't access global state; data is passed in via the new and incomplete newgame_def. Eventually, new_game should be split into something like newgame_def choose_game(); that doesn't access "you", and void setup_game(newgame_def); that sets up the player. Also get rid of player_size in favour of player::body_size. Rename player_size_type to size_part_type since it's not really player-specific (used in actor::body_size). Move parts of player_genus, player::has_claws, body_size out into species.cc. --- crawl-ref/source/monster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/monster.h') diff --git a/crawl-ref/source/monster.h b/crawl-ref/source/monster.h index 028f4155fd..133c0df54f 100644 --- a/crawl-ref/source/monster.h +++ b/crawl-ref/source/monster.h @@ -201,7 +201,7 @@ public: bool extra_balanced() const; bool can_pass_through_feat(dungeon_feature_type grid) const; bool is_habitable_feat(dungeon_feature_type actual_grid) const; - size_type body_size(int psize = PSIZE_TORSO, bool base = false) const; + size_type body_size(size_part_type psize = PSIZE_TORSO, bool base = false) const; int body_weight() const; int total_weight() const; int damage_brand(int which_attack = -1); -- cgit v1.2.3-54-g00ecf