Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
Interaction Layer

Files

file  board_locations.hpp
 Contains the class responsible for mapping locations on the 3D game board model to their equivalent coordinates in the data model.
 
file  interface_pointer_callback.hpp
 Contains classes that serve as interfaces for sim objects that wish to respond to click events.
 
file  query_click.hpp
 Contains the QueryClick class definition, responsible for calling pointer click callbacks for objects in its world that support it.
 
file  ui_button.hpp
 Contains the class representation of UI buttons used in this project.
 

Classes

class  BoardLocations
 The aspect responsible for mapping points on the 3D game board to their equivalent coordinates on the game board data model. More...
 
class  IUsePointer
 The interface used by aspects, objects, which cast pointer rays to interact with objects present in the world. More...
 
class  ILeftClickable
 The interface used by aspects which wish to respond to mouse left click events (or equivalent). More...
 
class  IHoverable
 The interface implemented by aspects which wish to respond to pointer hover related events. More...
 
class  QueryClick
 The aspect responsible for conducting raycasts and calling pointer event callbacks on eligible objects. More...
 
class  UIButton
 A UI component class for creating simple buttons comprised of a resizable panel and some text. More...
 

Functions

 NLOHMANN_JSON_SERIALIZE_ENUM (UIButton::State, { {UIButton::State::ACTIVE, "active"}, {UIButton::State::HOVER, "hover"}, {UIButton::State::PRESSED, "pressed"}, {UIButton::State::INACTIVE, "inactive"}, })
 

Detailed Description