Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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