// $Id$
//
-// SuperTux - A Jump'n Run
+// SuperTux
// Copyright (C) 2003 Tobias Glaesser <tobi.web@gmx.de>
+// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
PlayerStatus::PlayerStatus()
: coins(START_COINS),
bonus(NO_BONUS),
+ max_fire_bullets(0),
+ max_ice_bullets(0),
score_multiplier(1),
max_score_multiplier(1)
{
log_warning << "Unknown bonus type." << std::endl;
writer.write_string("bonus", "none");
}
+ writer.write_int("fireflowers", max_fire_bullets);
+ writer.write_int("iceflowers", max_ice_bullets);
+
writer.write_bool("key-brass", keys & KEY_BRASS);
writer.write_bool("key-iron", keys & KEY_IRON);
writer.write_bool("key-bronze", keys & KEY_BRONZE);
bonus = NO_BONUS;
}
}
+ lisp.get("fireflowers", max_fire_bullets);
+ lisp.get("iceflowers", max_ice_bullets);
+
bool val = false;
if(lisp.get("key-brass", val) && val == true)
set_keys(KEY_BRASS);