~dcow90/myro-c++/extern-c

« back to all changes in this revision

Viewing changes to headers/Myro.h

  • Committer: John Hoare
  • Date: 2011-03-29 20:20:53 UTC
  • Revision ID: john@johnami.com-20110329202053-3o4liyjbocsqdxff
Added some myro functions that are in the book but not in the library, currentTime() and randomNumber()

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
#include <Scribbler.h>
11
11
 
12
 
 
13
12
extern Scribbler robot;
14
13
 
15
14
/** @defgroup myro_general General Myro Commands
45
44
 */
46
45
bool timeRemaining(double start_time);
47
46
 
 
47
/**
 
48
 * Returns the time, in seconds, since the epoch.
 
49
 */
 
50
double currentTime();
 
51
 
 
52
/**
 
53
 * Returns a random number in the range of 0.0 and 1.0
 
54
 */
 
55
double randomNumber();
 
56
 
48
57
 
49
58
/**
50
59
 * Pop open a dialog box asking the user to answer a question.