Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8935 was 8894, checked in by patrick, 18 years ago

merged the branche single_player_map with the trunk

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 void setAnimationSpeed(float speed) {}
43};
44
45
46#endif /* _INTERACTIVE_MODEL_H */
Note: See TracBrowser for help on using the repository browser.