|
Last change
on this file since 12329 was
12311,
checked in by mkarpf, 7 years ago
|
|
example level weiterentwickelt
mousapi addobject korrigiert
|
|
File size:
911 bytes
|
| Rev | Line | |
|---|
| [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 | |
|---|
| 10 | namespace orxonox |
|---|
| 11 | { |
|---|
| [12271] | 12 | class MouseAPIExample : public ControllableEntity |
|---|
| [12255] | 13 | { |
|---|
| 14 | public: |
|---|
| 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); |
|---|
| [12311] | 20 | void clickleft(MouseButtonCode::ByEnum mouse); |
|---|
| 21 | void clickright(MouseButtonCode::ByEnum mouse); |
|---|
| [12306] | 22 | inline void setId(int id) |
|---|
| 23 | { this->id = id; } |
|---|
| 24 | inline int getId() const |
|---|
| 25 | { return this->id; } |
|---|
| 26 | private: |
|---|
| 27 | int id; |
|---|
| [12302] | 28 | ClickableObjectID cubeid; |
|---|
| 29 | ScrollableElementID sphereid; |
|---|
| [12311] | 30 | ClickableObjectID leftid,rightid; |
|---|
| [12255] | 31 | }; |
|---|
| 32 | } |
|---|
| 33 | #endif // MOUSEAPIEXAMPLE_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.