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

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

lic

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
23using namespace irr::core;
24using namespace flair::core;
25
26namespace flair
27{
28namespace simulator
29{
30
31Castle::Castle(const Simulator* parent,int app_width, int app_height,int scene_width, int scene_height,std::string media_path): Gui(parent,"Castle",app_width,app_height,scene_width,scene_height, media_path)
32{
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
39Castle::~Castle()
40{
41
42}
43
44} // end namespace simulator
45} // end namespace flair
46#endif //GL
Note: See TracBrowser for help on using the repository browser.