From: Matthias Braun Date: Wed, 18 May 2005 00:46:49 +0000 (+0000) Subject: oops forgot files again X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=01a345ecc4e807d4e1bbdd7c25f87a6013ed54fe;p=supertux.git oops forgot files again SVN-Revision: 2508 --- diff --git a/src/scripting/player.h b/src/scripting/player.h new file mode 100644 index 000000000..9c1f009fe --- /dev/null +++ b/src/scripting/player.h @@ -0,0 +1,37 @@ +#ifndef __PLAYER_H__ +#define __PLAYER_H__ + +namespace Scripting +{ + +class Player +{ +public: +#ifndef SCRIPTING_API + virtual ~Player() + {} +#endif + + /** + * Set tux bonus. + * This can be "grow", "fireflow" or "iceflower" at the moment + */ + virtual void set_bonus(const std::string& bonus) = 0; + /** + * Make tux invicible for a short amount of time + */ + virtual void make_invincible() = 0; + /** + * Give tux another life + */ + virtual void add_life() = 0; + /** + * Give tux more coins + */ + virtual void add_coins(int count) = 0; +}; + +} + +#endif +