From 5ca778dba2fa6fa89fbea0fe76a3d1fbba6bc143 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 2 Nov 2026 21:22:23 +0100 Subject: Restructure --- app/c++/ico_bar.hpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app/c++/ico_bar.hpp (limited to 'app/c++/ico_bar.hpp') diff --git a/app/c++/ico_bar.hpp b/app/c++/ico_bar.hpp new file mode 100644 index 0000000..780e28e --- /dev/null +++ b/app/c++/ico_bar.hpp @@ -0,0 +1,37 @@ +#pragma once + +#include "ico.hpp" + +namespace kel { + +template +class ico_coordinate { +private: + static constexpr uint64_t sub_divs_ = impl::power_two::value; + + uint64_t t_; + uint64_t x_; + uint64_t y_; +public: + ico_coordinate(uint64_t t__, uint64_t x__, uint64_t y__): + t_{t__}, + x_{x__}, + y_{y__} + {} + + bool is_on_border() const { + auto comb = x_+y_; + + bool farside_b = (comb == sub_divs_); + bool right_b = (y_ == 0u); + bool left_b = (x_ == 0u); + + return farside_b or right_b or left_b; + } + + ico_coordinate move_x_pos() const { + uint64_t x_mov = x_ + 1u; + + } +}; +} -- cgit v1.3.1