Last change
on this file since 9 was 8, checked in by Sanahuja Guillaume, 9 years ago |
simulator
|
File size:
987 bytes
|
Rev | Line | |
---|
[8] | 1 | // created: 2013/03/27
|
---|
| 2 | // filename: Castle.cpp
|
---|
| 3 | //
|
---|
| 4 | // author: Guillaume Sanahuja
|
---|
| 5 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 6 | //
|
---|
| 7 | // version: $Id: $
|
---|
| 8 | //
|
---|
| 9 | // purpose: classe chargeant une map chateau
|
---|
| 10 | //
|
---|
| 11 | /*********************************************************************/
|
---|
| 12 | #ifdef GL
|
---|
| 13 |
|
---|
| 14 | #include "Castle.h"
|
---|
| 15 | #include "Simulator.h"
|
---|
| 16 | #include <IrrlichtDevice.h>
|
---|
| 17 | #include <IFileSystem.h>
|
---|
| 18 |
|
---|
| 19 | using namespace irr::core;
|
---|
| 20 | using namespace flair::core;
|
---|
| 21 |
|
---|
| 22 | namespace flair
|
---|
| 23 | {
|
---|
| 24 | namespace simulator
|
---|
| 25 | {
|
---|
| 26 |
|
---|
| 27 | 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)
|
---|
| 28 | {
|
---|
| 29 | //carte
|
---|
| 30 | std::string file=media_path +"/map-20kdm2.pk3";
|
---|
| 31 | getDevice()->getFileSystem()->addFileArchive(file.c_str());
|
---|
| 32 | setMesh("20kdm2.bsp",vector3df(-1400,-65,-1349));
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | Castle::~Castle()
|
---|
| 36 | {
|
---|
| 37 |
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | } // end namespace simulator
|
---|
| 41 | } // end namespace flair
|
---|
| 42 | #endif //GL
|
---|
Note:
See
TracBrowser
for help on using the repository browser.