JNR
laActiveObject.h
1 /*
2 
3 Jump'n'Run Engine
4 http://www.atanaslaskov.com/jnr/
5 
6 BSD LICENSE
7 Copyright (c) 2007-2013, Atanas Laskov
8 All rights reserved.
9 
10 Redistribution and use in source and binary forms, with or without
11 modification, are permitted provided that the following conditions are met:
12 1. Redistributions of source code must retain the above copyright notice,
13 this list of conditions and the following disclaimer.
14 2. Redistributions in binary form must reproduce the above copyright notice,
15 this list of conditions and the following disclaimer in the documentation
16 and/or other materials provided with the distribution.
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 DISCLAIMED. IN NO EVENT SHALL ATANAS LASKOV BE LIABLE FOR ANY
21 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 
28 */
29 
36 
37 
39 {
40  //Can be constructed from class name
41  CLASS_NAME(laActiveObject);
42 
43 protected:
44 
45  virtual void _execute_ai(laTimer &t);
46  virtual unsigned _next_state(unsigned nCurrentState );
47 
48 public:
49  laActiveObject(void);
50  virtual ~laActiveObject(void);
51 
52  // Load the object from file
53  //
54  virtual void load(class laFileParser *fp);
55 
56  // Dynamicly create a new object
57  //
58  //virtual void create(laPoint3 pos);
59 
60  // Respawn. Revert object to its original state
61  //
62  virtual void respawn();
63 
64  // Draw the object
65  //
66  //virtual void drawGeometry(laRenderer *r, laPoint3 ptBasePos);
67  //virtual void drawFx(laRenderer *r, laPoint3 ptBasePos);
68  //virtual void drawInterface(laRenderer *r, laPoint3 ptBasePos);
69 
70  // Animate the object
71  //
72  //virtual void animate(laTimer &t);
73 };
laActiveObject(void)
Active Object.
Multi-state Level Object.
Definition: laStateObject.h:64
Object that can be activated by the player.
File Parser.
Definition: laFileParser.h:41