misc_buttons.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2000 The Exult Team
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License
00006 as published by the Free Software Foundation; either version 2
00007 of the License, or (at your option) any later version.
00008 
00009 This program is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with this program; if not, write to the Free Software
00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 */
00018 
00019 #ifndef _MISC_BUTTONS_H_
00020 #define _MISC_BUTTONS_H_
00021 
00022 #include "Gump_button.h"
00023 
00024 class Actor;
00025 
00026 /*
00027  *  A checkmark for closing its parent:
00028  */
00029 class Checkmark_button : public Gump_button
00030 {
00031 public:
00032   Checkmark_button(Gump *par, int px, int py);
00033           // What to do when 'clicked':
00034   virtual void activate();
00035 };
00036 
00037 /*
00038  *  A 'heart' button for bringing up stats.
00039  */
00040 class Heart_button : public Gump_button
00041 {
00042 public:
00043   Heart_button(Gump *par, int px, int py);
00044           // What to do when 'clicked':
00045   virtual void activate();
00046 };
00047 
00048 /*
00049  *  A diskette for bringing up the 'save' box.
00050  */
00051 class Disk_button : public Gump_button
00052 {
00053 public:
00054   Disk_button(Gump *par, int px, int py);
00055           // What to do when 'clicked':
00056   virtual void activate();
00057 };
00058 
00059 /*
00060  *  The combat toggle button.
00061  */
00062 class Combat_button : public Gump_button
00063 {
00064 public:
00065   Combat_button(Gump *par, int px, int py);
00066           // What to do when 'clicked':
00067   virtual void activate();
00068   virtual void paint();
00069 };
00070 
00071 /*
00072  *  The halo button.
00073  */
00074 class Halo_button : public Gump_button
00075 {
00076   Actor *actor;     // Who this represents.
00077 public:
00078   Halo_button(Gump *par, int px, int py, Actor *a);
00079           // What to do when 'clicked':
00080   virtual void activate();
00081 };
00082 
00083 /*
00084  *  Combat mode.  Has 10 frames corresponding to Actor::Attack_mode.
00085  */
00086 class Combat_mode_button : public Gump_button
00087 {
00088   Actor *actor;     // Who this represents.
00089 public:
00090   Combat_mode_button(Gump *par, int px, int py, Actor *a);
00091           // What to do when 'clicked':
00092   virtual void activate();
00093 };
00094 
00095 /*
00096  *  The Serpent Isle Combat Stats Button
00097  */
00098 class Cstats_button : public Gump_button
00099 {
00100 public:
00101   Cstats_button(Gump *par, int px, int py);
00102 
00103   // What to do when 'clicked':
00104   virtual void activate();
00105 };
00106 
00107 #endif
00108 

Generated on Mon Jul 9 14:42:46 2007 for ExultEngine by  doxygen 1.5.1