Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Enumerations | Functions
message_type.h File Reference
#include <iosfwd>
#include <string>
#include <vector>
Include dependency graph for message_type.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  message_type {
  cannot , done , select , start_attack ,
  start_en_passant_attack , start_castling_kingside , start_castling_queenside , start_move ,
  unselect
}
 The type of a message. More...
 

Functions

std::vector< message_typeget_all_message_types () noexcept
 Get all the message_type values.
 
void test_message_type ()
 Test this class and its free functions.
 
std::string to_str (const message_type t) noexcept
 
std::string to_str (const std::vector< message_type > &v) noexcept
 
std::ostream & operator<< (std::ostream &os, const message_type t) noexcept
 

Enumeration Type Documentation

◆ message_type

enum class message_type
strong

The type of a message.

Enumerator
cannot 
done 
select 
start_attack 
start_en_passant_attack 
start_castling_kingside 
start_castling_queenside 
start_move 
unselect 

Function Documentation

◆ get_all_message_types()

std::vector< message_type > get_all_message_types ( )
noexcept

Get all the message_type values.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const message_type  t 
)
noexcept

◆ test_message_type()

void test_message_type ( )

Test this class and its free functions.

◆ to_str() [1/2]

std::string to_str ( const message_type  t)
noexcept

◆ to_str() [2/2]

std::string to_str ( const std::vector< message_type > &  v)
noexcept