Skip to content
Divided by Zer0 edited this page Mar 9, 2022 · 15 revisions

Board

Extends: Control

Description

Mean to serve as the main play area for Card objects.

It functions almost like a CardContainer.

Property Descriptions

counters

var counters: Counters

Simulated mouse position for Unit Testing Simulated mouse position for Unit Testing Simulated mouse position for Unit Testing Simulated mouse movement speed for Unit Testing. The bigger the number, the faster the mouse moves Set to true if there's an actual interpolation ongoing Used for interpolating Used for finding the counters node and modifying them This variable has to exist if the mod_counters task is to be used.

mouse_pointer

var mouse_pointer: MousePointer

Method Descriptions

get_all_cards

func get_all_cards() -> Array

Returns an array with all children nodes which are of Card class

get_all_scriptables

func get_all_scriptables() -> Array

Overridable function which returns all objects on the table which can be used as subjects by the scripting engine.

get_card_count

func get_card_count() -> int

Returns an int with the amount of children nodes which are of Card class

get_card

func get_card(idx: int) -> Card

Returns a card object of the card in the specified index among all cards.

get_card_index

func get_card_index(card: Card) -> int

Returns an int of the index of the card object requested

get_grid

func get_grid(grid_name: String) -> BoardPlacementGrid

Returns the BoardPlacementGrid object with the specified name

get_final_placement_node

func get_final_placement_node(card: Card) -> Node

warning-ignore:unused_argument

Clone this wiki locally