
#include <iostream>
using namespace std;
#include"Drone.h"
#include "DroneOwnedStates.h"



//**************************************************

Drone::Drone()
{
	pCurrentState = AtHome::Instance();
}

void Drone::Update()
   //The update method should be called each time step
   //in the main game loop.
  {
	pCurrentState->Execute(this);
  }

void Drone::ChangeState(State* pNewState)
  {
	  pCurrentState->Exit(this);

	  pCurrentState = pNewState;
      pCurrentState->Enter(this);
  }

bool  Drone::timeForWork()
  {
	  int reply;
	  cout<<"\nIs it time for work? (Y=1, N= 0) \n";
      cin >> reply;
	  if (reply == 1) return true; else return false;
  }

bool  Drone::homeTime()
  {
	  int reply;
	  cout<<"\nIs it time for fun? (Y=1, N= 0) \n";
      cin >> reply;
	  if (reply == 1) return true; else return false;
  }
//********************************************
