Rev | Line | |
---|
[10] | 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}
|
---|
[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 "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 | {
|
---|
| 28 | namespace simulator
|
---|
| 29 | {
|
---|
| 30 |
|
---|
| 31 | Castle::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 |
|
---|
| 39 | Castle::~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.