Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
game_coordinate Class Reference

An exact coordinate anywhere on the board. More...

#include <game_coordinate.h>

Public Member Functions

 game_coordinate (const double x=0, const double y=0)
 
double get_x () const noexcept
 
double get_y () const noexcept
 

Detailed Description

An exact coordinate anywhere on the board.

Unlike a square}, a game_coordinate} can indicate a spot on a square.

See also
use screen_coordinate} for a coordinat on the screen
x coordinat
|-----------------------|
0 1 2 3 4 5 6 7 8
+--+--+--+--+--+--+--+--+ 0 -
| | | | | | | | | |
+--+--+--+--+--+--+--+--+ 1 |
. . . . . . . . . | y coordinat
. . . . . . . . . |
+--+--+--+--+--+--+--+--+ 7 |
| | | | | | | | | |
+--+--+--+--+--+--+--+--+ 8 -

Constructor & Destructor Documentation

◆ game_coordinate()

game_coordinate::game_coordinate ( const double  x = 0,
const double  y = 0 
)
explicit

Member Function Documentation

◆ get_x()

double game_coordinate::get_x ( ) const
inlinenoexcept

◆ get_y()

double game_coordinate::get_y ( ) const
inlinenoexcept

The documentation for this class was generated from the following files: