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

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

corrected simu/device id for sensors

File size: 1.1 KB
RevLine 
[10]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[10]4// %flair:license}
[8]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
[15]25namespace flair {
26namespace simulator {
[8]27
[158]28Castle::Castle(int app_width, int app_height,
[15]29 int scene_width, int scene_height, std::string media_path)
[158]30 : Gui("Castle", app_width, app_height, scene_width, scene_height,
[15]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));
[8]36}
37
[15]38Castle::~Castle() {}
[8]39
40} // end namespace simulator
41} // end namespace flair
[15]42#endif // GL
Note: See TracBrowser for help on using the repository browser.