Project

General

Profile

Revision d140fd71

IDd140fd71ddd19ef38a0124cbbea1165874a5474d
Parent 8a4624e7
Child 479d25d8

Added by Yuyang almost 4 years ago

Added Sensors class that abstracts away sensors from behaviors. Stops creating
duplicated sensors for each scout.

View differences:

scout/libscout/src/behaviors/navigationMap.cpp
48 48
 * The map itself is represented as a dynamic array of edge arrays
49 49
 * @param the string name of the scout
50 50
 */
51
navigationMap::navigationMap(string scoutname) : Behavior(scoutname, "navigationMap")
51
navigationMap::navigationMap(string scoutname, Sensors* sensors) : 
52
            Behavior(scoutname, "navigationMap", sensors)
52 53
{
53 54
  /** Initialize Map 
54 55
   *                     _____

Also available in: Unified diff