Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Functions
options_view_item.cpp File Reference
#include "options_view_item.h"
#include "../magic_enum/include/magic_enum/magic_enum.hpp"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <sstream>
Include dependency graph for options_view_item.cpp:

Functions

std::vector< options_view_itemget_all_options_view_items () noexcept
 Get all the options view items.
 
options_view_item get_above (const options_view_item item) noexcept
 Get the item above the current one, i.e.
 
options_view_item get_below (const options_view_item item) noexcept
 Get the item below the current one, i.e.
 
options_view_item get_left_of (const options_view_item item) noexcept
 Get the item left of the current one, i.e.
 
options_view_item get_right_of (const options_view_item item) noexcept
 Get the item right of the current one, i.e.
 
void test_options_view_item ()
 Test this class and free functions.
 
std::string to_str (const options_view_item t) noexcept
 
std::ostream & operator<< (std::ostream &os, const options_view_item i) noexcept
 

Function Documentation

◆ get_above()

options_view_item get_above ( const options_view_item  item)
noexcept

Get the item above the current one, i.e.

the item when the user presses up

◆ get_all_options_view_items()

std::vector< options_view_item > get_all_options_view_items ( )
noexcept

Get all the options view items.

◆ get_below()

options_view_item get_below ( const options_view_item  item)
noexcept

Get the item below the current one, i.e.

the item when the user presses down

◆ get_left_of()

options_view_item get_left_of ( const options_view_item  item)
noexcept

Get the item left of the current one, i.e.

the item when the user presses left

◆ get_right_of()

options_view_item get_right_of ( const options_view_item  item)
noexcept

Get the item right of the current one, i.e.

the item when the user presses right

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const options_view_item  i 
)
noexcept

◆ test_options_view_item()

void test_options_view_item ( )

Test this class and free functions.

◆ to_str()

std::string to_str ( const options_view_item  t)
noexcept