fast-nuclear-sim/src/reactor.hpp

32 lines
373 B
C++
Raw Normal View History

2024-01-13 17:33:53 +11:00
#pragma once
#include "fuel_rod.hpp"
#include <vector>
namespace sim
{
class reactor
{
2024-01-13 21:54:21 +11:00
std::vector<fuel_rod> rods;
2024-01-13 17:33:53 +11:00
int size;
long update_count = 0;
int get_id(int x, int y) const;
public:
reactor(int radius, fuel_rod fr);
void update(double secs);
2024-01-13 21:54:21 +11:00
void display(std::ostream& o, int x, int y) const;
2024-01-13 17:33:53 +11:00
2024-01-13 21:54:21 +11:00
constexpr int get_size() const { return size; }
2024-01-13 17:33:53 +11:00
};
}