summaryrefslogtreecommitdiff
path: root/Camera.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-07-10 23:17:34 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2018-07-10 23:17:34 +0200
commit20936e93023c18f54d217c66b0e08fa80f4f7d50 (patch)
tree613f81844cfbceb5a097c4ccf77dc3688081b3e4 /Camera.h
parent14c12aeea30d59e9c811f1cc8c7019053d646033 (diff)
downloadpocketempires-20936e93023c18f54d217c66b0e08fa80f4f7d50.tar.gz
Camera is now an independent instance, and HumanPlayer only holds a reference to it.
Diffstat (limited to 'Camera.h')
-rw-r--r--Camera.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Camera.h b/Camera.h
index ff18894..d9d02f0 100644
--- a/Camera.h
+++ b/Camera.h
@@ -23,15 +23,19 @@ class Camera
{
public:
Camera(void);
+ void handler(void);
void setLock(const bool bLock)
{
_bLocked = bLock;
}
- void getCoordinates(int16_t* const x, int16_t* const y);
+ uint8_t getX(const uint8_t x) const;
+ uint8_t getY(const uint8_t y) const;
/* Event handlers. */
void onLeftBtnPressed(void);
void onRightBtnPressed(void);
+ void onUpBtnPressed(void);
+ void onDownBtnPressed(void);
private:
bool _bLocked;