Board Game Classes

The user interface of Vecset 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 Card objects from one location and drop them on another location. If drag mode is disabled, the user clicks on the source Card 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) Card, such as a playing card or chess piece; 2) CardStack, a stack of Card objects; 3) BoardGrid, a grid in which each cell is a CardStack object; 4) RowGrid, a collection of CardStack 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 Card or CardStack 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.