The Battle for Wesnoth  1.19.7+dev
Public Attributes | List of all members
cubic_location Struct Reference

Represents a map location in cubic hexagonal coordinates. More...

#include <location.hpp>

Public Attributes

int q
 
int r
 
int s
 

Detailed Description

Represents a map location in cubic hexagonal coordinates.

See https://www.redblobgames.com/grids/hexagons/#coordinates-cube for a more detailed explanation.

Definition at line 33 of file location.hpp.

Member Data Documentation

◆ q

int cubic_location::q

Definition at line 34 of file location.hpp.

Referenced by luaW_tocubeloc(), and map_location::rotate_right_around_center().

◆ r

int cubic_location::r

Definition at line 34 of file location.hpp.

Referenced by luaW_tocubeloc().

◆ s

int cubic_location::s

Definition at line 34 of file location.hpp.

Referenced by luaW_tocubeloc().


The documentation for this struct was generated from the following file: