The Battle for Wesnoth  1.19.5+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

◆ r

int cubic_location::r

Definition at line 34 of file location.hpp.

Referenced by luaW_pushcubeloc(), and luaW_tocubeloc().

◆ s

int cubic_location::s

Definition at line 34 of file location.hpp.

Referenced by luaW_pushcubeloc(), and luaW_tocubeloc().


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