Finished Lab 4 Pt 1
Dependencies: mbed Sounds PinDetect
Diff: Buzzy.h
- Revision:
- 0:daf9e2f8e1a1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Buzzy.h Fri Apr 05 19:46:26 2019 +0000 @@ -0,0 +1,20 @@ +#pragma once + +#include "Sprite.h" + +class Buzzy : public Sprite +{ + public: + Buzzy(){m_CurrentDirection = m_DesiredDirection = Sprite::LEFT_DIR;m_nActiveImage=0;}; + // Constructor + Buzzy(enDIRECTIONS inDir, unsigned int inRow, unsigned int inCol); + + virtual ~Buzzy(){}; + virtual void Move(); + virtual bool IsMoveAllowed(const int &nNewRow, const int &nNewCol); + + void DrawInNewLocation(const int &nRow,const int &nCol); + bool DidGhostGetBuzzy(); + int honey; + +};