Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Bertl by
Robot.h
- Committer:
- Winkler55555
- Date:
- 2015-12-21
- Revision:
- 18:10877b29cf5c
- Parent:
- 17:308802267a62
File content as of revision 18:10877b29cf5c:
/*********************************** name: Robot.h Version: 1.0 author: PE HTL BULME email: pe@bulme.at WIKI: https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/ description: Definition portion of a new Robot class for objectivRobot ***********************************/ #include "mbed.h" #include "ur_Bertl.h" #include "string" #ifndef ROBOT_H #define ROBOT_H class Robot : public Bertl { public: Robot() {}; Robot(int x, int y, int dir, int beeper) {} void move(); // nur Deklaration - Prototyping void turnLeft(); bool frontIsClear(); void pickBeeper(); void putBeeper(); bool nextToABeeper(); //is there one or more beepers in the same corner? bool nextToARobot(); //is there another robot in the corner? bool facingNorth(); //is the robot facing North? bool facingSouth(); // is the robot facing South? bool facingEast(); // is the robot facing East? bool facingWest(); // is the robot facing West? bool anyBeepersInBeeperBag(); //are there any beepers in the bag? }; #endif