source: flair-src/trunk/lib/FlairSimulator/src/Castle.cpp@ 175

Last change on this file since 175 was 158, checked in by Sanahuja Guillaume, 8 years ago

corrected simu/device id for sensors

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 <IrrlichtDevice.h>
20#include <IFileSystem.h>
21
22using namespace irr::core;
23using namespace flair::core;
24
25namespace flair {
26namespace simulator {
27
28Castle::Castle(int app_width, int app_height,
29 int scene_width, int scene_height, std::string media_path)
30 : Gui("Castle", app_width, app_height, scene_width, scene_height,
31 media_path) {
32 // carte
33 std::string file = media_path + "/map-20kdm2.pk3";
34 getDevice()->getFileSystem()->addFileArchive(file.c_str());
35 setMesh("20kdm2.bsp", vector3df(-1400, -65, -1349));
36}
37
38Castle::~Castle() {}
39
40} // end namespace simulator
41} // end namespace flair
42#endif // GL
Note: See TracBrowser for help on using the repository browser.