const protocol_id = "z5_muay_boran_243.1";

const BET_MULTIPLIER = 25;

const PAYTABLE_SIZE = 12;

const BET_TYPE_NORMAL = 0;
const BET_TYPE_BONUS = 1;

const SYMBOLS = ["ten", "jack", "queen", "king", "ace", "leg", "knee", "elbow", "hand", "warrior", "wild", "scatter"];

const 	TEN = 0;
const 	JACK = 1;
const 	QUEEN = 2;
const 	KING = 3;
const 	ACE = 4;
const 	LEG = 5;
const 	KNEE = 6;
const 	ELBOW = 7;
const 	HAND = 8;
const 	WARRIOR = 9;
const 	WILD = 10;
const 	SCATTER = 11;

//reel manager constants

const RM_STATE_READY = 0;
const RM_STATE_SPIN = 1;
const RM_STATE_EXTENDED_SPIN = 2;
const RM_STATE_PLAY_WIN = 3;
const RM_STATE_TOTAL_WIN = 4;
const RM_STATE_S_SCATTER_WIN  = 5;
const RM_STATE_BEFORE_SWAP = 6;
const RM_STATE_AFTER_SWAP = 7;

//main scene constants


const GAME_STATE_NOT_INITIALIZED = 1;

const GAME_STATE_READY = 3;
const GAME_STATE_SPIN = 4;
const GAME_STATE_PLAY_WIN = 5;
const GAME_STATE_JACKPOT_WIN = 6;
const GAME_STATE_TOTAL_WIN = 7;
const GAME_STATE_CASHBACK_WIN = 8;
const GAME_STATE_PAYTABLE = 9;
const GAME_STATE_SERVER_RESPONSE_PENDING = 10;
const GAME_STATE_ERROR = 11;
const GAME_STATE_FREE_GAMES = 12;

const EXTENDED_SPIN_DURATION = 3000;

const BGR_STRIP_Y_LANDSCAPE = [112, 316, 530, 748, 960];
const BGR_STRIP_Y_PORTRAIT = [100, 310, 526, 724, 936, 1144, 1356, 1584, 1792];

const BGR_STRIP_PORTRAIT_INCLUDE = [1, 2, 6, 7, , 8];//show strip only in these positions

const DOORS_STATE_NONE = 0;
const DOORS_STATE_START_CLOSING = 1;
const DOORS_STATE_START_OPENING = 2;
const DOORS_STATE_END_CLOSING = 3;
const DOORS_STATE_END_OPENING = 4;
