source: abuse/trunk/src/imlib/guistat.hpp @ 106

Last change on this file since 106 was 106, checked in by Sam Hocevar, 11 years ago
  • Rename the "eh" variable to "wm" because it's a window manager, not an event handler.
  • No longer pass the window manager to functions, there's only one.

Inspired by Win32 Abuse changelog for January 28, 2001:

  • Starting work on singleton code; will get rid of all

references to an arbitrary window_manager* because
there's only going to be one, and it's not ever
going to change.

File size: 832 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
10#ifndef __GU_STAT_HPP
11#define __GU_STAT_HPP
12#include "status.hpp"
13#include "jwindow.hpp"
14#include <string.h>
15
16class gui_status_node;
17class gui_status_manager : public status_manager
18{
19  char title[40];
20  int last_perc;
21  public :   
22  gui_status_node *first;
23  gui_status_manager();
24  virtual void push(char const *name, visual_object *show);
25  virtual void update(int percentage);
26  virtual void pop();
27  void draw_bar(gui_status_node *whom, int perc);
28  void set_window_title(char const *name) { strncpy(title,name,39); }
29  virtual void force_display();
30} ;
31
32#endif
Note: See TracBrowser for help on using the repository browser.