Rev | Line | |
---|
[8439] | 1 | /* |
---|
| 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
| 10 | |
---|
| 11 | ### File Specific: |
---|
| 12 | main-programmer: Patrick Boenzli |
---|
| 13 | co-programmer: |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | /*! |
---|
| 17 | * @file interactive_model.h |
---|
| 18 | * Definition of an abstract interactive model. |
---|
| 19 | * it offers a skeletton for choosing animations, ticking the model a.s.o |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | #ifndef _INTERACTIVE_MODEL_H |
---|
| 23 | #define _INTERACTIVE_MODEL_H |
---|
| 24 | |
---|
| 25 | #include "model.h" |
---|
| 26 | #include "vector.h" |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | class InteractiveModel : public Model |
---|
| 31 | { |
---|
[9869] | 32 | ObjectListDeclaration(InteractiveModel); |
---|
[8439] | 33 | public: |
---|
| 34 | InteractiveModel(); |
---|
| 35 | ~InteractiveModel(); |
---|
| 36 | |
---|
| 37 | virtual void tick(float) = 0; |
---|
| 38 | |
---|
| 39 | virtual void setAnimation(int animNum, int playbackMode = 0) = 0; |
---|
[8894] | 40 | virtual void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback) {} |
---|
[9869] | 41 | virtual int getAnimation() const = 0; |
---|
[8894] | 42 | |
---|
[9003] | 43 | virtual bool isAnimationFinished() { return false; } |
---|
| 44 | |
---|
[8894] | 45 | virtual void setAnimationSpeed(float speed) {} |
---|
[8439] | 46 | }; |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | #endif /* _INTERACTIVE_MODEL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.