thadarawgs.action.php - hadarawgs - Hadara adaptation for boardgamearena.com
 (HTM) git clone git://git.z3bra.org/hadarawgs.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       thadarawgs.action.php (1650B)
       ---
            1 <?php
            2 /**
            3  *------
            4  * BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
            5  * hadarawgs implementation : © Willy Goiffon <dev@z3bra.org>
            6  *
            7  * This code has been produced on the BGA studio platform for use on https://boardgamearena.com.
            8  * See http://en.doc.boardgamearena.com/Studio for more information.
            9  * -----
           10  *
           11  * hadarawgs.action.php
           12  *
           13  * hadarawgs main action entry point
           14  *
           15  *
           16  * In this file, you are describing all the methods that can be called from your
           17  * user interface logic (javascript).
           18  *
           19  * If you define a method "myAction" here, then you can call it from your javascript code with:
           20  * this.ajaxcall( "/hadarawgs/hadarawgs/myAction.html", ...)
           21  *
           22  */
           23 
           24 class action_hadarawgs extends APP_GameAction
           25 {
           26         // Constructor: please do not modify
           27         public function __default()
           28         {
           29                 if( self::isArg( 'notifwindow') ) {
           30                         $this->view = "common_notifwindow";
           31                         $this->viewArgs['table'] = self::getArg( "table", AT_posint, true );
           32                 } else {
           33                         $this->view = "hadarawgs_hadarawgs";
           34                         self::trace( "Complete reinitialization of board game" );
           35                   }
           36         }
           37 
           38         // TODO: defines your action entry points there
           39 
           40 
           41         /*
           42         Example:
           43         public function myAction()
           44         {
           45                 self::setAjaxMode();
           46 
           47                 // Retrieve arguments
           48                 // Note: these arguments correspond to what has been sent through the javascript "ajaxcall" method
           49                 $arg1 = self::getArg( "myArgument1", AT_posint, true );
           50                 $arg2 = self::getArg( "myArgument2", AT_posint, true );
           51 
           52                 // Then, call the appropriate method in your game logic, like "playCard" or "myAction"
           53                 $this->game->myAction( $arg1, $arg2 );
           54 
           55                 self::ajaxResponse( );
           56         }
           57         */
           58 }