Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-26 20:19:10 +0000
committerStijn Buys <ingar@osirion.org>2009-01-26 20:19:10 +0000
commitc99a440e6fb1edf35e280f4df8ba22600e490535 (patch)
tree9c39358c234e1629bc0cb2e4b5a2685f562663c9 /src/client/view.h
parent597b3e0921dd24fa5e224377da4754da93a782c1 (diff)
removed View class
Diffstat (limited to 'src/client/view.h')
-rw-r--r--src/client/view.h105
1 files changed, 0 insertions, 105 deletions
diff --git a/src/client/view.h b/src/client/view.h
deleted file mode 100644
index 499f6ec..0000000
--- a/src/client/view.h
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- client/view.h
- This file is part of the Osirion project and is distributed under
- the terms and conditions of the GNU General Public License version 2
-*/
-
-#ifndef __INCLUDED_CLIENT_VIEW_H__
-#define __INCLUDED_CLIENT_VIEW_H__
-
-#include "core/zone.h"
-#include "client/chat.h"
-#include "client/hud.h"
-#include "client/map.h"
-#include "client/notifications.h"
-#include "ui/widget.h"
-#include "ui/bitmap.h"
-
-namespace client
-{
-
-const size_t fps_counter_size = 32; // fps is the average of 32 frames
-const size_t net_counter_size = 128; // net is the average of 128 frames
-
-/// a widget to show developer info
-class DevInfo : public ui::Widget
-{
-public:
- /// default constructor
- DevInfo(ui::Widget *parent = 0);
-
-protected:
- /// draw developer info
- virtual void draw();
-};
-
-/// a widget that shows engine statistics
-class Stats : public ui::Widget
-{
-public:
- /// default constructor
- Stats(ui::Widget *parent=0);
-
-protected:
- /// draw engine statistics
- virtual void draw();
-
-private:
- float fps_counter_time[fps_counter_size];
- size_t fps_counter_index;
-
- float net_counter_time[net_counter_size];
- size_t net_counter_traffic[net_counter_size];
- size_t net_counter_index;
-};
-
-/// a widget to show keypress events
-class KeyPress : public ui::Widget
-{
-public:
- // default constructor
- KeyPress(ui::Widget *parent=0);
-
-protected:
- // draw keypress events
- virtual void draw();
-};
-
-/// the client view widget
-/**
-* the client view renders the world and contains the main user interface widgets
-*/
-class View : public ui::Widget
-{
-public:
- View(ui::Widget *parent=0);
-
- inline Map *map() { return view_map; }
- inline Chat *chat() { return view_chat; }
- inline Notifications *notify() { return view_notify; }
-
-protected:
- virtual void draw();
-
- virtual void resize();
-
-private:
- HUD *view_hud;
- Chat *view_chat;
- DevInfo *view_devinfo;
- Stats *view_stats;
- KeyPress *view_keypress;
- Notifications *view_notify;
- Map *view_map;
-};
-
-namespace view {
-
-void draw_hud();
-
-}
-
-} // namespace client
-
-#endif // __INCLUDED_CLIENT_VIEW_H__
-