CFLinker.h 524 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef CFLINKER_H
#define CFLINKER_H

#include "globalDefinitions.h"
#include "crazyFly.h"
#include "crazyFlyZone.h"

class CFLinker
{
public:
    explicit CFLinker();
    ~CFLinker();

    void link(crazyFly* crazyfly, crazyFlyZone* crazyfly_zone);
    void link(crazyFlyZone* crazyfly_zone, crazyFly* crazyfly);

    void unlink(crazyFly* crazyfly,  crazyFlyZone* crazyfly_zone);

private:

    struct link {
        int cf_zone_index;
        std::string cf_name;
    };

    std::vector<struct link> links;
};


#endif