summaryrefslogtreecommitdiff
path: root/graphs/cpp/caste_or_cast/nurturer.hh
blob: af7eec7241b0297ee29ca7f1c4d40ba36a339dea (plain)
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
#pragma once

#include "worker.hh"

/*
 * Nurturers worker sub-caste
 */
class Nurturer : public Worker
{
public:
    //! inherit Worker Constructors
    using Worker::Worker;
    //! final override of the work() Worker virtual method
    void work() override final;

    /*!
     * @details final override of the communicate() Ant virtual method
     * @return true if the communication succeeded
     * */
    bool communicate(std::weak_ptr<Ant> wk_receiver) override final;
    //! feed the queen
    void feedQueen();
    //! feed larvae
    void feedLarvae();
    //! clean the nest / colony
    void cleanNest();
};