Project

General

Profile

Revision 0fd64186

ID0fd64186f32938237821e340c36590c9a095d87e
Parent 73f82b31
Child aa382878

Added by Yuyang Guo over 9 years ago

intorlab0 forgot one file ><

View differences:

scout/libscout/src/introlab/draw_someone_name.hfake
1
/**
2
 * Copyright (c) 2011 Colony Project
3
 * 
4
 * Permission is hereby granted, free of charge, to any person
5
 * obtaining a copy of this software and associated documentation
6
 * files (the "Software"), to deal in the Software without
7
 * restriction, including without limitation the rights to use,
8
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
9
 * copies of the Software, and to permit persons to whom the
10
 * Software is furnished to do so, subject to the following
11
 * conditions:
12
 * 
13
 * The above copyright notice and this permission notice shall be
14
 * included in all copies or substantial portions of the Software.
15
 * 
16
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
 * OTHER DEALINGS IN THE SOFTWARE.
24
 */
25

  
26
#ifndef _DRAW_<SOMEONE>_NAME_H_
27
#define _DRAW_<SOMEONE>_NAME_H_
28

  
29
#include "../../Behavior.h"
30

  
31
/** 
32
 * The following class inherits the behavior class. This
33
 * means that all functions and variables defined
34
 * in the Behavior class also apply to this class.
35
 */
36
class draw_<someone>_name : Behavior
37
{
38
    public:
39
        /** 
40
         * The following line is the constructor of this class.
41
         * It first calls the Behavior class's constructor with some
42
         * parameters and then does nothing on its own.
43
         */
44
        draw_<someone>_name(std::string scoutname, Sensors* sensors)
45
            : Behavior(scoutname, "draw_<someone>_name", sensors) {};
46

  
47
        /** This is the function that when called actually executes
48
         * the behavior. */
49
        void run();
50
    private:
51
        void turnRight();
52
};
53

  
54
#endif

Also available in: Unified diff