Last change
on this file since 85 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.1 KB
|
Line | |
---|
1 | // %flair:license{
|
---|
2 | // This file is part of the Flair framework distributed under the
|
---|
3 | // CECILL-C License, Version 1.0.
|
---|
4 | // %flair:license}
|
---|
5 | // created: 2013/03/27
|
---|
6 | // filename: Castle.cpp
|
---|
7 | //
|
---|
8 | // author: Guillaume Sanahuja
|
---|
9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
10 | //
|
---|
11 | // version: $Id: $
|
---|
12 | //
|
---|
13 | // purpose: classe chargeant une map chateau
|
---|
14 | //
|
---|
15 | /*********************************************************************/
|
---|
16 | #ifdef GL
|
---|
17 |
|
---|
18 | #include "Castle.h"
|
---|
19 | #include "Simulator.h"
|
---|
20 | #include <IrrlichtDevice.h>
|
---|
21 | #include <IFileSystem.h>
|
---|
22 |
|
---|
23 | using namespace irr::core;
|
---|
24 | using namespace flair::core;
|
---|
25 |
|
---|
26 | namespace flair {
|
---|
27 | namespace simulator {
|
---|
28 |
|
---|
29 | Castle::Castle(const Simulator *parent, int app_width, int app_height,
|
---|
30 | int scene_width, int scene_height, std::string media_path)
|
---|
31 | : Gui(parent, "Castle", app_width, app_height, scene_width, scene_height,
|
---|
32 | media_path) {
|
---|
33 | // carte
|
---|
34 | std::string file = media_path + "/map-20kdm2.pk3";
|
---|
35 | getDevice()->getFileSystem()->addFileArchive(file.c_str());
|
---|
36 | setMesh("20kdm2.bsp", vector3df(-1400, -65, -1349));
|
---|
37 | }
|
---|
38 |
|
---|
39 | Castle::~Castle() {}
|
---|
40 |
|
---|
41 | } // end namespace simulator
|
---|
42 | } // end namespace flair
|
---|
43 | #endif // GL
|
---|
Note:
See
TracBrowser
for help on using the repository browser.