Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

getRadius added, example-level

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