summaryrefslogtreecommitdiff
path: root/src/animate.hpp
blob: d14d7551aad5835ec2c5ee42f4c44f333f6dc5f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22


#include <functional>
#include <hooks.hpp>

#include "analysis_tools.hpp"

#include <GL/glut.h>

class animate : public hooks {
  private:
    bool seen_guy;
  public:
    long double lv;
    std::list<std::list<unsigned>> avalanches;

    animate(double Lx, double Ly, unsigned window_size, int argc, char *argv[]);

    void pre_fracture(const network &) override;
    void bond_broken(const network& net, const current_info& cur, unsigned i) override;
    void post_fracture(network &n) override;
};