Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapiexample.h @ 12306

Last change on this file since 12306 was 12306, checked in by mkarpf, 5 years ago

example level weiterentwickelt

File size: 816 bytes
Line 
1#ifndef MOUSEAPIEXAMPLE_H
2#define MOUSEAPIEXAMPLE_H
3
4#include "core/XMLPort.h"
5#include "mouseapi.h"
6#include "core/CoreIncludes.h"
7#include "worldentities/ControllableEntity.h"
8#include <list>
9
10namespace orxonox
11{
12class MouseAPIExample : public ControllableEntity
13{
14public:
15    MouseAPIExample(Context *context);
16    ~MouseAPIExample();
17    virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
18    void changesizeonclick(MouseButtonCode::ByEnum mouse);
19    void changesizeonscroll(int abs,int rel,const IntVector2& mousePos);
20    inline void setId(int id)
21        { this->id = id; }
22    inline int getId() const
23        { return this->id; }
24private:
25    int id;
26    ClickableObjectID cubeid;
27    ScrollableElementID sphereid;
28    static std::list<MouseAPIExample> blocks;
29};
30}
31#endif // MOUSEAPIEXAMPLE_H
Note: See TracBrowser for help on using the repository browser.