-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ShapeProxy -> now supporting native implementations of onAreaTo…
…uched().
- Loading branch information
Nicolas Gramlich
committed
Mar 2, 2012
1 parent
6bfb205
commit 3b961ee
Showing
10 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "ShapeProxy.h" | ||
|
||
// =========================================================== | ||
// org.andengine.extension.scripting.entity.EntityProxy | ||
// =========================================================== | ||
|
||
ShapeProxy::ShapeProxy() { | ||
/* Intentionally empty. */ | ||
} | ||
|
||
bool ShapeProxy::onAreaTouched(jobject pSceneTouchEvent, jfloat pTouchAreaLocalX, jfloat pTouchAreaLocalY) { | ||
this->setScale(2); | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef ShapeProxy_H | ||
#define ShapeProxy_H | ||
|
||
#include <jni.h> | ||
#include "ScriptingEnvironment.h" | ||
#include "EntityProxy.h" | ||
|
||
class ShapeProxy : public EntityProxy { | ||
protected: | ||
/* Constructors */ | ||
ShapeProxy(); | ||
|
||
public: | ||
/* Callbacks. */ | ||
bool onAreaTouched(jobject pSceneTouchEvent, jfloat pTouchAreaLocalX, jfloat pTouchAreaLocalY); | ||
}; | ||
|
||
#endif |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters