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