PETConstants

File holding several constants used throughout the project, and included in modules.js.Interfaces.PETRequireGameObjectInterface(). As such it is included in all classes implementing the interface.

Constants

gameActionUrl = "/progressevolutiontechnologyswh/progressevolutiontechnologyswh/"

Base URL for the actions sent by the ajaxcall() function

Type

string

baseImgUrl = g_gamethemeurl + 'img/'

Path to the images directory containing sprites

Type

string

cardImgUrl = baseImgUrl + 'AgeCardsSprite-quant.png'

Path to the cards sprite

Type

string

cubeImgUrl = baseImgUrl + 'cubes.png'

Path to the cubes sprite

Type

string

tokenImgUrl = baseImgUrl + 'TokensSprite-quant.png'

Path to the knowledge tokens sprite

Type

string

ageTokenImgUrl = baseImgUrl + 'AgeTokens-quant.png'

Path to the age token sprite

Type

string

cardHeight = 252

Height of a card in the srpite, in px

Type

int

cardWidth = 177

Width of a card in the sprite, in px

Type

int

cardPerRow = 10

Number of cards per row in the sprite

Type

int

cardHorizontalOverlap = 23

Horizontal overlap for cards, in %

Type

int

cardVerticalOverlap = 15

Vertical overlap for cards, in %

Type

int

cubeHeight = 30

Height of a cube in the sprite, in px

Type

int

cubeWidth = 30

Width of a cube in the sprite, in px

Type

int

cubePerRow = 11

Number of cube images per row in the sprite

Type

int

tokenHeight = 70

Height of a knowledge token in the sprite, in px

Type

int

tokenWidth = 70

Width of a knowledge token in the sprite, in px

Type

int

tokenPerRow = 4

Number of knowledge token images per row in the sprite

Type

int

ageTokenHeight = 60

Height of an Age token in the sprite, in px

Type

int

ageTokenWidth = 60

Width of an Age token in the sprite, in px

Type

int

ageTokenPerRow = 4

Number of Age token images per row in the sprite

Type

int