refactor waterline

This commit is contained in:
2025-05-22 21:55:44 -04:00
committed by laugos
parent 96b995bbd9
commit 86b6811c44
2 changed files with 21 additions and 10 deletions

View File

@@ -1,11 +1,18 @@
#pragma once
#include "Entity.h"
#include <string>
#include <vector>
class Waterline {
private:
static constexpr int WATERLINE_Y = 5;
static constexpr char WATERLINE_COLOR = 'c';
size_t x, y;
std::vector<std::string> shape;
void shiftString(std::string &, int direction);
std::vector<std::string> colorLines;
void shiftString(std::string &str, int direction);
void initializeShape();
public:
Waterline();