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
00001 /*********************************** 00002 name: Robot.h Version: 1.0 00003 author: PE HTL BULME 00004 email: pe@bulme.at 00005 WIKI: https://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/ 00006 description: 00007 Definition portion of a new Robot class for objectivRobot 00008 00009 ***********************************/ 00010 #include "mbed.h" 00011 #include "ur_Bertl.h" 00012 #include "string" 00013 00014 #ifndef ROBOT_H 00015 #define ROBOT_H 00016 00017 class Robot : public ur_Bertl 00018 { 00019 public: 00020 Robot() {}; 00021 Robot(int x, int y, int dir, int beeper) {} 00022 void move(); // nur Deklaration - Prototyping 00023 void turnLeft(); 00024 bool frontIsClear(); 00025 void pickBeeper(); 00026 void putBeeper(); 00027 bool nextToABeeper(); //is there one or more beepers in the same corner? 00028 bool nextToARobot(); //is there another robot in the corner? 00029 bool facingNorth(); //is the robot facing North? 00030 bool facingSouth(); // is the robot facing South? 00031 bool facingEast(); // is the robot facing East? 00032 bool facingWest(); // is the robot facing West? 00033 bool anyBeepersInBeeperBag(); //are there any beepers in the bag? 00034 00035 }; 00036 #endif
Generated on Wed Jul 13 2022 11:51:38 by
