/[anoncvs]/projects/roguelike/View.h


UCC Code Repository

Contents of /projects/roguelike/View.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Apr 7 02:09:07 2006 UTC (15 years, 2 months ago) by banana
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +4 -0 lines
File MIME type: text/plain
New class, header cleanups with pragma once

1 banana 1.1 /*
2     * View - the visible subset of a World
3     */
4 banana 1.3 #pragma once
5 banana 1.1
6 banana 1.3 //Includes
7 banana 1.1 #include "World.h"
8 banana 1.3 #include "core.h"
9 banana 1.1
10 banana 1.3 //Class definition
11 banana 1.1 class View {
12 banana 1.2 World *myWorld;
13    
14     public:
15 banana 1.1 int left, top;
16     int width, height;
17    
18     View(World *w);
19    
20     raw_screen render();
21    
22     void move(int x, int y);
23     void resize(int x, int y);
24     };

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26