Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/importer/interactive_model.h @ 9166

Last change on this file since 9166 was 9003, checked in by bensch, 18 years ago

orxonox/trunk: merged the single_player_map branche back
merged with command:
svn merge -r8896:HEAD https://svn.orxonox.net/orxonox/branches/single_player_map .
no conflicts

File size: 1.1 KB
Line 
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
30class InteractiveModel : public Model
31{
32  public:
33    InteractiveModel();
34    ~InteractiveModel();
35
36    virtual void tick(float) = 0;
37
38    virtual void setAnimation(int animNum, int playbackMode = 0) = 0;
39    virtual void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback) {}
40    virtual int getAnimation() = 0;
41
42    virtual bool isAnimationFinished() { return false; }
43
44    virtual void setAnimationSpeed(float speed) {}
45};
46
47
48#endif /* _INTERACTIVE_MODEL_H */
Note: See TracBrowser for help on using the repository browser.