<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cs">
	<id>https://cs.doc.boardgamearena.com/index.php?action=history&amp;feed=atom&amp;title=Game_interface_logic_%28yourgamename.js%29</id>
	<title>Game interface logic (yourgamename.js) - Historie editací</title>
	<link rel="self" type="application/atom+xml" href="https://cs.doc.boardgamearena.com/index.php?action=history&amp;feed=atom&amp;title=Game_interface_logic_%28yourgamename.js%29"/>
	<link rel="alternate" type="text/html" href="https://cs.doc.boardgamearena.com/index.php?title=Game_interface_logic_(yourgamename.js)&amp;action=history"/>
	<updated>2026-09-16T00:35:41Z</updated>
	<subtitle>Historie editací této stránky</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://cs.doc.boardgamearena.com/index.php?title=Game_interface_logic_(yourgamename.js)&amp;diff=449&amp;oldid=prev</id>
		<title>Sourisdudesert: Created page with &quot;== Client side (Javascript functions) ==  ; this.player_id : Id of the player on whose browser the code is running.  ; this.isSpectator : Flag set to true if the user at the t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://cs.doc.boardgamearena.com/index.php?title=Game_interface_logic_(yourgamename.js)&amp;diff=449&amp;oldid=prev"/>
		<updated>2013-01-05T10:16:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Client side (Javascript functions) ==  ; this.player_id : Id of the player on whose browser the code is running.  ; this.isSpectator : Flag set to true if the user at the t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Client side (Javascript functions) ==&lt;br /&gt;
&lt;br /&gt;
; this.player_id&lt;br /&gt;
: Id of the player on whose browser the code is running.&lt;br /&gt;
&lt;br /&gt;
; this.isSpectator&lt;br /&gt;
: Flag set to true if the user at the table is a spectator (not a player).&lt;br /&gt;
&lt;br /&gt;
; this.gamedatas&lt;br /&gt;
: Contains your initial set of datas to init the game, created at game start or game refresh (F5)&lt;br /&gt;
: You can update it as needed to keep an up to date reference of the game on the client side.&lt;br /&gt;
&lt;br /&gt;
; slideToObject: function( mobile_obj, target_obj, duration, delay )&lt;br /&gt;
: Return an dojo.fx animation that is sliding a DOM object from its current position over another one&lt;br /&gt;
: Animate a slide of the DOM object referred to by domNodeToSlide from its current position to the xpos, ypos relative to the object referred to by domNodeToSlideTo.&lt;br /&gt;
&lt;br /&gt;
; slideToObjectPos: function( mobile_obj, target_obj, target_x, target_y, duration, delay )&lt;br /&gt;
: Return an dojo.fx animation that is sliding a DOM object from its current position over another one at the given coordinates relative to the target object.&lt;br /&gt;
&lt;br /&gt;
; updateCounters(counters)&lt;br /&gt;
: Useful for updating game counters in the player panel (such as resources). &lt;br /&gt;
: &amp;#039;counters&amp;#039; arg is an associative array [counter_name_value =&amp;gt; [ &amp;#039;counter_name&amp;#039; =&amp;gt; counter_name_value, &amp;#039;counter_value&amp;#039; =&amp;gt; counter_value_value], ... ]&lt;br /&gt;
: All counters must be referenced in this.gamedatas.counters and will be updated.&lt;br /&gt;
: DOM objects referenced by &amp;#039;counter_name&amp;#039; will have their innerHTML updated with &amp;#039;counter_value&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
; addTooltip( node, _( helpString ), _( actionString ), delay );&lt;br /&gt;
: Add a simple text tooltip to the DOM node. Only one of &amp;#039;helpString&amp;#039; or &amp;#039;actionString&amp;#039; must be used. _() must be used for the text to be marked for translation.&lt;br /&gt;
&lt;br /&gt;
; addTooltipHtml( node, html, delay );&lt;br /&gt;
: Add an HTML tooltip to the DOM node (for more elaborate content such as presenting a bigger version of a card).&lt;br /&gt;
&lt;br /&gt;
; addTooltipToClass( cssClass, _( helpString ), _( actionString ), delay );&lt;br /&gt;
: Add a simple text tooltip to all the DOM nodes set with this cssClass. Only one of &amp;#039;helpString&amp;#039; or &amp;#039;actionString&amp;#039; must be used. _() must be used for the text to be marked for translation.&lt;br /&gt;
: NB: all concerned nodes must have IDs to get tooltips&lt;br /&gt;
&lt;br /&gt;
; addTooltipHtmlToClass( cssClass, html, delay );&lt;br /&gt;
: Add an HTML tooltip to to all the DOM nodes set with this cssClass (for more elaborate content such as presenting a bigger version of a card).&lt;br /&gt;
: NB: all concerned nodes must have IDs to get tooltips&lt;br /&gt;
&lt;br /&gt;
; addEventToClass: function( cssClassName, eventName, functionName )&lt;br /&gt;
: Same as dojo.connect(), but for all the nodes set with the specified cssClassName&lt;br /&gt;
&lt;br /&gt;
; addStyleToClass: function( cssClassName, cssProperty, propertyValue )&lt;br /&gt;
: Same as dojo.style(), but for all the nodes set with the specified cssClassName&lt;br /&gt;
&lt;br /&gt;
; isCurrentPlayerActive()&lt;br /&gt;
: Returns true if the player on whose browser the code is running is currently active (it&amp;#039;s his turn to play)&lt;br /&gt;
&lt;br /&gt;
; checkAction: function( action, nomessage )&lt;br /&gt;
: Check if player can do the specified action by taking into account:  _ current game state &amp;amp; _ interface locking&lt;br /&gt;
: return true if action is authorized&lt;br /&gt;
: return false and display an error message if not (display no message if nomessage is specified)&lt;br /&gt;
&lt;br /&gt;
; showMessage: function( msg, type )&lt;br /&gt;
: Show an information message during a few seconds at the top of the page&lt;br /&gt;
: Type can be &amp;#039;error&amp;#039; or &amp;#039;info&amp;#039;&lt;br /&gt;
&lt;br /&gt;
; this.scoreCtrl[ player_id ].incValue( score_delta );&lt;br /&gt;
: Adds score_delta (positive or negative integer) to the current score value for player&lt;/div&gt;</summary>
		<author><name>Sourisdudesert</name></author>
	</entry>
</feed>