Last change
on this file since 6152 was
6152,
checked in by bensch, 18 years ago
|
orxonox/trunk: some work in the loading process of worlds
|
File size:
1.4 KB
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | /* |
---|
4 | orxonox - the future of 3D-vertical-scrollers |
---|
5 | |
---|
6 | Copyright (C) 2004 orx |
---|
7 | |
---|
8 | This program is free software; you can redistribute it and/or modify |
---|
9 | it under the terms of the GNU General Public License as published by |
---|
10 | the Free Software Foundation; either version 2, or (at your option) |
---|
11 | any later version. |
---|
12 | |
---|
13 | ### File Specific: |
---|
14 | main-programmer: Patrick Boenzli |
---|
15 | co-programmer: |
---|
16 | */ |
---|
17 | |
---|
18 | |
---|
19 | #include "story_entity.h" |
---|
20 | |
---|
21 | |
---|
22 | using namespace std; |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | StoryEntity::StoryEntity () |
---|
27 | { |
---|
28 | this->setClassID(CL_STORY_ENTITY, "StoryEntity"); |
---|
29 | } |
---|
30 | StoryEntity::~StoryEntity () {} |
---|
31 | |
---|
32 | |
---|
33 | /** |
---|
34 | * sets the story ID |
---|
35 | |
---|
36 | sets the story id of the current entity, this enables it to be identified in a |
---|
37 | global context. |
---|
38 | */ |
---|
39 | void StoryEntity::setStoryID(int storyID) |
---|
40 | { |
---|
41 | this->storyID = storyID; |
---|
42 | } |
---|
43 | |
---|
44 | |
---|
45 | /** |
---|
46 | * this reads the story id of the current entity |
---|
47 | * @returns the story entity id |
---|
48 | */ |
---|
49 | int StoryEntity::getStoryID() |
---|
50 | { |
---|
51 | return this->storyID; |
---|
52 | } |
---|
53 | |
---|
54 | |
---|
55 | /** |
---|
56 | * sets the id of the next story entity |
---|
57 | |
---|
58 | StoryEntities can choose their following entity themselfs. the entity id defined here |
---|
59 | will be startet after this entity ends. this can be convenient if you want to have a |
---|
60 | non linear story with switches. |
---|
61 | */ |
---|
62 | void StoryEntity::setNextStoryID(int nextStoryID) |
---|
63 | { |
---|
64 | this->nextStoryID = nextStoryID; |
---|
65 | } |
---|
66 | |
---|
67 | /** |
---|
68 | * gets the story id of the current entity |
---|
69 | * @returns story id |
---|
70 | */ |
---|
71 | int StoryEntity::getNextStoryID() |
---|
72 | { |
---|
73 | return this->nextStoryID; |
---|
74 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.