Class Bertl

Dependencies:   HCSR

Dependents:   LEDTestmitButton

Fork of ur_Bertl by BERTL_CHEL18

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Robot.h Source File

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 #endif