The user interface of TileGamer board games consists of a top-level window containing one or more board game components, as well as standard widgets such as labels, buttons, and checkboxes. If drag mode is enabled, the user must drag Tile objects from one location and drop them on another location. If drag mode is disabled, the user clicks on the source Tile object, which is then highlighted, and then clicks on the destination location.
Drag-and-Drop Components
Drag-and-drop board games are constructed out of 4 basic components: 1) Tile, such as a playing card or chess piece; 2) Tile-stack, a stack of Tile objects; 3) Board-grid, a grid in which each cell is a Tile-stack object; 4) Row-grid, a collection of Tile-stack objects arranged in a row (or column). Each of these components has an associated class.
Board Game Events
A drag and a drop event is generated every time the user drags/drops a Tile or Tile-stack object. If drag mode is disabled, both events are generated when the user clicks on the destination location.
Standard Widgets
Various widgets the user can interact with, including labels, buttons, checkboxes, radio buttons, edit boxes, memo boxes, combo boxes, group boxes, panels, etc.