Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
PieceJailPlan.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "PieceCamera.hpp"
5
6#include <cstdint>
7#include <expected>
8
9namespace monopoly::pieces
10{
11 enum class PieceJailPlanError : std::uint8_t
12 {
16 };
17
25
26 [[nodiscard]] std::expected<PieceJailRoutePlan, PieceJailPlanError>
27 planPaddyToToken(std::uint8_t tokenSquare, std::uint64_t startTick,
28 std::uint8_t randomBit = 0);
29
30 [[nodiscard]] std::expected<PieceJailRoutePlan, PieceJailPlanError>
31 planPaddyToJail(std::uint8_t tokenSquare,
32 InterpolationVec3 startLocation, std::uint64_t startTick);
33}
unsigned index
std::expected< PieceJailRoutePlan, PieceJailPlanError > planPaddyToJail(std::uint8_t tokenSquare, InterpolationVec3 startLocation, std::uint64_t startTick)
std::expected< PieceJailRoutePlan, PieceJailPlanError > planPaddyToToken(std::uint8_t tokenSquare, std::uint64_t startTick, std::uint8_t randomBit)