TargetManager

Dependents:   TargetManagerManualTest NerfUSTarget

Committer:
dupm2216
Date:
Mon Mar 27 22:25:43 2017 +0000
Revision:
6:b6ecf23f24ce
Parent:
3:70212b0e0939
Make it work with local build; ; Move mbed dependant sources to mbed_source. This way, the local build will ignore them. Changed TargetManager to TargetManagerInterface. This library won't give a working TargetManager, this will be the user's job.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dupm2216 3:70212b0e0939 1 #include "TargetHitCallback.hpp"
dupm2216 3:70212b0e0939 2
dupm2216 6:b6ecf23f24ce 3 TargetHitCallback::TargetHitCallback(TargetManagerInterface& target_manager, const int id) :
dupm2216 3:70212b0e0939 4 target_manager(target_manager),
dupm2216 3:70212b0e0939 5 id(id)
dupm2216 3:70212b0e0939 6 {
dupm2216 3:70212b0e0939 7 }
dupm2216 3:70212b0e0939 8
dupm2216 3:70212b0e0939 9 void TargetHitCallback::call()
dupm2216 3:70212b0e0939 10 {
dupm2216 3:70212b0e0939 11 target_manager.target_hit(id);
dupm2216 3:70212b0e0939 12 }