From 01a345ecc4e807d4e1bbdd7c25f87a6013ed54fe Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 18 May 2005 00:46:49 +0000 Subject: [PATCH] oops forgot files again SVN-Revision: 2508 --- src/scripting/player.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/scripting/player.h 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 + -- 2.11.0