The Game Engine
1
Main Page
Related Pages
Classes
Files
File List
File Members
Background.h
Go to the documentation of this file.
1
#ifndef __BACKGROUND_H__
2
#define __BACKGROUND_H__
3
#include "
fns.h
"
4
#include "
WorldObject.h
"
5
#include "
CollisionObject.h
"
6
#include <string>
7
#include <vector>
8
#include <iostream>
9
10
using
std::string;
11
using
std::vector;
23
class
Background
:
public
WorldObject
{
24
protected
:
26
Texture
mBackground
;
28
int
width
;
30
int
height
;
32
bool
wrapping
;
34
vector<CollisionObject*>
collisionData
;
35
36
37
public
:
45
Background
(
string
name=
"default"
,
46
string
filename=
"bg.bmp"
,
47
bool
wrap=
true
,
48
Point2D
ScreenPosition=
Point2D
()
49
);
50
51
~Background
();
55
void
draw
();
56
60
void
update
();
61
66
string
getName
() {
return
mName
; }
67
72
void
setName
(
string
name) {
mName
= name; }
73
78
int
load
(
string
name=
"default"
);
79
84
Size2D
getPosition
() {
return
mPos
;}
85
89
Point2D
getBasePos
() {
return
Point2D
(); };
90
94
Point2D
getCenterPos
() {
return
Point2D
(); };
95
99
virtual
WorldObjectType
getType
(){
return
BACKGROUND
; }
100
105
void
setWrap
(
bool
tf);
106
111
bool
getWrap
();
112
116
void
drawCollisions
();
117
118
};
119
#endif
Background.h
Generated on Tue Apr 16 2013 02:32:41 for The Game Engine by
1.8.3.1