Arkanoid Remake  1.0
PlayArea.h
1 /*
2 ArkanoidRemakeSDL
3 a sample of object-oriented game programming with C++.
4 version 1.0, May 2016
5 
6 Copyright (c) 2016 Giovanni Paolo Vigano'
7 
8 The source code of the SDL library used by ArkanoidRemakeSDL can be found here:
9 https://www.libsdl.org/
10 ---
11 ArkanoidRemakeSDL source code is licensed with the same zlib license:
12 (http://www.gzip.org/zlib/zlib_license.html)
13 
14 This software is provided 'as-is', without any express or implied warranty. In
15 no event will the authors be held liable for any damages arising from the use of
16 this software.
17 
18 Permission is granted to anyone to use this software for any purpose, including
19 commercial applications, and to alter it and redistribute it freely, subject to
20 the following restrictions:
21 
22  1. The origin of this software must not be misrepresented; you must not
23  claim that you wrote the original software. If you use this software in a
24  product, an acknowledgment in the product documentation would be appreciated
25  but is not required.
26 
27  2. Altered source versions must be plainly marked as such, and must not be
28  misrepresented as being the original software.
29 
30  3. This notice may not be removed or altered from any source distribution.
31 */
32 
33 #pragma once
34 
35 #ifndef PLAYAREA_H
36 #define PLAYAREA_H
37 
38 #include <Ship.h>
39 
42 
46 class PlayArea : public BoxObj
47 {
48 public:
50  PlayArea();
51 
53  unsigned mColor;
54 
56  void PlaceShip(Ship& ship, const VecXy& pos);
57 };
58 
60 
61 #endif//PLAYAREA_H
62 
PlayArea()
Constructor.
Vector with two (double precision) coordinate values.
Definition: VecXy.h:59
Ship class definition.
A box-shaped object.
Definition: BoxObj.h:51
void PlaceShip(Ship &ship, const VecXy &pos)
Place the ship inside the play area.
unsigned mColor
Color used for background if an image is not available.
Definition: PlayArea.h:53
Play area definition.
Definition: PlayArea.h:46
Game ship object definition.
Definition: Ship.h:53