Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PerceptualTaskBase.cc

Go to the documentation of this file.
00001 // INCLUDES
00002 // tekkodu
00003 #include "Kodu/KoduAgent.h"
00004 #include "Kodu/KoduWorld.h"
00005 #include "Kodu/PerceptualTasks/PerceptualTaskBase.h"
00006 
00007 namespace Kodu {
00008 
00009     void PerceptualTaskBase::examineTaskResults() {
00010         // does nothing
00011         return;
00012     }
00013 
00014     const DualCoding::MapBuilderRequest& PerceptualTaskBase::getMapBuilderRequest() {
00015         return mapreq;
00016     }
00017 
00018     PerceptualTaskBase::TaskStatus_t PerceptualTaskBase::getStatus() const {
00019         return taskStatus;
00020     }
00021 
00022     float PerceptualTaskBase::getTaskId() const {
00023         return id;
00024     }
00025 
00026     PerceptualTaskType_t PerceptualTaskBase::getType() const {
00027         return type;
00028     }
00029 
00030     void PerceptualTaskBase::setTaskStatus(TaskStatus_t newStatus) {
00031         taskStatus = newStatus;
00032     }
00033 
00034     bool PerceptualTaskBase::taskIsComplete(const KoduWorld& kWorldState) {
00035         return (taskStatus == TS_SUCCESSFUL
00036              || taskStatus == TS_FAILURE
00037              || taskStatus == TS_COMPLETE);
00038     }
00039 }

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:45 2016 by Doxygen 1.6.3