Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bobtheuberfish/chiriboga
/ functions
Functions
723 in github.com/bobtheuberfish/chiriboga
⨍
Functions
723
◇
Types & classes
11
↓ 545 callers
Function
t
(t,e)
cardrenderer/pixi.min.js:9
↓ 371 callers
Function
n
(t)
cardrenderer/pixi.min.js:8
↓ 175 callers
Function
Log
* Outputs a standard style message to the console and ends with carriage return. * * @method Log * @param {String} src text to output
utility.js:522
↓ 144 callers
Function
i
(s,a)
cardrenderer/pixi.min.js:8
↓ 138 callers
Function
CheckSubType
* Check if a card has a certain subtype.<br/>Nothing is logged. * * @method CheckSubType * @param {Card} card card object to check * @param {S
checks.js:181
↓ 134 callers
Function
CheckCardType
* Checks whether a card has any of a list of card types. * * @method CheckCardType * @param {Card} card to check type for * @param {String[]}
checks.js:157
↓ 127 callers
Function
GetTitle
* Get the title of a card. Use this instead of .title directly.<br/>If hideHidden is true, returns [hidden card] if not known to viewingPlayer. *
utility.js:634
↓ 105 callers
Function
$
(a)
jquery/jquery-3.2.1.min.js:3
↓ 105 callers
Function
TutorialMessage
(message, prompt = false, callback=null)
init.js:1592
↓ 97 callers
Method
_log
(message)
ai_corp.js:5
↓ 85 callers
Function
o
(t,e)
cardrenderer/pixi.min.js:8
↓ 82 callers
Function
CheckCredits
* Checks whether the player has at least the required credits in their pool. * * @method CheckCredits * @param {Player} player to check clicks f
checks.js:127
↓ 82 callers
Function
DecisionPhase
* Special phase to ask for a custom player decision.<br/>Will return to the previous phase when done (without calling init).<br/>It is your responsibi
phase.js:1860
↓ 71 callers
Function
GetServer
* Get the server a card is installed in/in front of.<br/>Returns null if not found in a server, or is in R&D/HQ/Archives.cards (i.e. not installed).
utility.js:750
↓ 70 callers
Function
x
(t,e,r)
cardrenderer/pixi.min.js:8
↓ 69 callers
Function
SpendCredits
* A player spends credits.<br/>No checks are performed.</br>Logs the result. * * @method SpendCredits * @param {Player} player either corp or ru
mechanics.js:892
↓ 59 callers
Function
s
(t,e,r,n,i,c,d)
cardrenderer/pixi.min.js:8
↓ 58 callers
Function
CheckCounters
* Checks whether a card has at least the required counters. * * @method CheckCounters * @param {Card} card card to check * @param {String} cou
checks.js:109
↓ 55 callers
Function
InstalledCards
* Gets an array of a player's installed cards.<br/>Nothing is logged. * @method InstalledCards * @param {Player} player corp or runner (null for b
utility.js:1602
↓ 54 callers
Function
Trash
* Trash a card or cards.<br/>Makes no checks or payments.<br/>Logs the result. * * @method Trash * @param {Card or Card[]} cards the card or car
mechanics.js:210
↓ 51 callers
Function
MoveCard
* Move a card by object.<br/>Nothing is logged. * * @method MoveCard * @param {Card} card card object to move * @param {Card[]} locationto des
utility.js:1509
↓ 50 callers
Function
CheckEncounter
* Checks if ice is being encountered. * * @method CheckEncounter * @returns {Boolean} true if ice is being encountered, false otherwise
checks.js:268
↓ 49 callers
Function
ChoicesInstalledCards
* Create a choices list from installed cards, limited according to Check function.</br>Nothing is logged. * * @method ChoicesInstalledCards * @p
utility.js:2229
↓ 45 callers
Method
_copyOfCardExistsIn
(title, cards)
ai_corp.js:1162
↓ 45 callers
Function
a
(t)
cardrenderer/pixi.min.js:8
↓ 44 callers
Function
Counters
* Gets the number of counters of a certain type on a card, including effects.<br/>Nothing is logged. * * @method Counters * @param {Card} card t
utility.js:1894
↓ 44 callers
Method
_log
(message)
ai_runner.js:31
↓ 43 callers
Function
GainCredits
* A player gains credits.<br/>No checks are performed.</br>Logs the result. * * @method GainCredits * @param {Player} player either corp or runn
mechanics.js:1045
↓ 43 callers
Function
RezCost
* Gets the rez cost of a card, including effects.<br/>Nothing is logged. * * @method RezCost * @param {Card} card to check rez cost for * @ret
utility.js:1942
↓ 40 callers
Function
ChangePhase
* Change the phase.<br/>Use this or IncrementPhase() which moves to default next phase. Never assign directly to currentPhase. * * @method ChangeP
phase.js:1744
↓ 39 callers
Function
CheckStrength
* Check if strength of a card is sufficient to interact with the currently encountered ice. * * @method CheckStrength * @param {Card} card card
checks.js:213
↓ 39 callers
Function
SpendClicks
* A player spends clicks.<br/>No checks are performed.</br>Logs the result. * * @method SpendClicks * @param {Player} player either corp or runn
mechanics.js:860
↓ 38 callers
Function
m
(t)
cardrenderer/pixi.min.js:8
↓ 38 callers
Function
r
(a,b)
jquery/jquery-3.2.1.min.js:2
↓ 36 callers
Function
EndTheRun
* Ends the run, counts as unsuccessful run.<br/>No checks are performed or payments made.<br/>Logs the result. * * @method EndTheRun
mechanics.js:1277
↓ 35 callers
Function
PlayerCanLook
* Find out whether a player can legally look at a card. * * @method PlayerCanLook * @param {Player} player either corp or runner (null will comb
utility.js:1130
↓ 33 callers
Function
Credits
* Gets the available credit pool for a player, including bad publicity but not recurring credits.<br/>Nothing is logged. * * @method Credits * @
utility.js:1785
↓ 33 callers
Function
Damage
* Runner takes damage (runner randomly trashes cards from grip).<br/>Stops on flatline.<br/>Logs the result. * * @method Damage * @param {String
mechanics.js:744
↓ 32 callers
Function
AvailableCredits
* Gets the available credit pool for a player, including bad publicity and recurring credits.<br/>Nothing is logged. * * @method AvailableCredits
utility.js:1799
↓ 32 callers
Function
Break
* Break a subroutine.<br/>Makes no checks or payments.<br/>Logs the result. * * @method Break * @param {Subroutine} subroutine the subroutine to
mechanics.js:642
↓ 31 callers
Function
CheckActionClicks
* Checks whether the player is in action phase and has at least the required clicks remaining. * * @method CheckActionClicks * @param {Player} p
checks.js:54
↓ 31 callers
Function
IncrementPhase
* Change to default next phase as defined by currentPhase.next.<br/>Use this or ChangePhase(src) which moves to a phase by identifier. Never assign di
phase.js:1841
↓ 31 callers
Function
e
(t,e)
cardrenderer/pixi.min.js:8
↓ 29 callers
Function
Render
()
init.js:358
↓ 29 callers
Function
SetHistoryThumbnail
* Set the phase history thumbnail.<br/>Nothing is logged. * * @method SetHistoryThumbnail * @param {String} imageFile name of image file, includ
phase.js:1821
↓ 28 callers
Function
ChoicesArrayCards
* Create a choices list from the given Card array, limited according to Check function.</br>Nothing is logged. * * @method ChoicesArrayCards * @
utility.js:2206
↓ 28 callers
Function
ChoicesEncounteredSubroutines
* Gets list of unbroken subroutines on ice being encountered.<br/>Nothing is logged. * * @method ChoicesEncounteredSubroutines * @returns {Param
utility.js:2184
↓ 28 callers
Function
CreatePhaseFromTemplate
* Creates a new game phase based on a previously defined phase object * * @class CreatePhaseFromTemplate * @param {Phase} template phase to copy
phase.js:34
↓ 27 callers
Function
PlayerName
* Get active player name. * * @method PlayerName * @param {Player} player either corp or runner * @returns {String} "Corp", "Runner", or "ERRO
utility.js:963
↓ 27 callers
Method
_protectionScore
( server, //higher number = more protected options //ignoreSuccessfulRuns, ignoreBackdoorFromArchives,
ai_corp.js:941
↓ 27 callers
Method
_returnPreference
(optionList, cmd, prefs)
ai_runner.js:579
↓ 26 callers
Method
Apply
( app, x, y, anchorX, anchorY, hostingX, faceDownOffset = 0 /
cardrenderer/cardrenderer.js:58
↓ 26 callers
Function
RenderCards
(cards, modifier)
init.js:270
↓ 26 callers
Method
_returnPreference
(optionList, cmd, prefs)
ai_corp.js:2152
↓ 25 callers
Function
AddCounters
* Add counters to a card.<br/>Makes no checks or payments.<br/>Logs the result. * * @method AddCounters * @param {Card} card the card to add cou
mechanics.js:1547
↓ 23 callers
Method
LoadTexture
* Load an image to create a texture object. * * @method Renderer.LoadTexture * @param {String} str image file * @returns {PIXI
cardrenderer/cardrenderer.js:1946
↓ 23 callers
Function
LogError
* Outputs a error message to the console and ends with carriage return. * * @method LogError * @param {String} src error text to output
utility.js:621
↓ 23 callers
Function
MaxHandSize
* Gets a player's max hand size. * * @method MaxHandSize * @param {Player} player to check max hand size for * @returns {int} max hand size (i
utility.js:1049
↓ 23 callers
Function
t
(i,e,s)
cardrenderer/pixi-particles.min.js:8
↓ 22 callers
Function
Draw
* A player draws cards.<br/>Stops on corp draw from empty R&D.<br/>Logs the result. * * @method Draw * @param {Player} player either corp or run
mechanics.js:807
↓ 22 callers
Function
InstallCost
* Gets the install cost of a card to a destination.<br/>Nothing is logged. * * @method InstallCost * @param {Card} installingCard card to check
utility.js:1833
↓ 21 callers
Function
InstanceCardsPush
* Create card instances from definition and push into an array. Returns an array of cards pushed.<br/>Nothing is logged. * * @method InstanceCards
decks.js:163
↓ 21 callers
Function
ReplicationCode
(src,str)
utility.js:206
↓ 21 callers
Function
Shuffle
* Shuffles an array.<br/>This modifies the original array.<br/>No message is logged. * * @method Shuffle * @param {any[]} array the array to shu
utility.js:1177
↓ 20 callers
Function
RandomRange
* Random integer from min to max, inclusive * * @method RandomRange * @param {int} min minimum * @param {int} max maximum * @returns {int} r
utility.js:2713
↓ 20 callers
Method
ToggleZoom
()
cardrenderer/cardrenderer.js:1222
↓ 19 callers
Function
Strength
* Gets the strength of a card, including effects.<br/>Nothing is logged. * * @method Strength * @param {Card} card to get strength for * @retu
utility.js:1882
↓ 19 callers
Function
pileToOutputString
(p,collapseSequentialOnly=true)
init.js:392
↓ 18 callers
Function
ActiveCards
* Gets an array of a player's active cards.<br/>Nothing is logged. * @method ActiveCards * @param {Player} player corp or runner (null for both)
utility.js:1675
↓ 18 callers
Function
GetApproachEncounterIce
* Get the currently approached/encountered ice, or if in movement phase from it.<br/>Returns card or null. * * @method GetApproachEncounterIce *
utility.js:824
↓ 18 callers
Function
PlayerHand
* Gets a player's hand of cards. * * @method PlayerHand * @param {Player} player either corp or runner * @returns {Card[]} array of cards
utility.js:1026
↓ 18 callers
Function
n
(a)
deck/seedrandom.min.js:1
↓ 16 callers
Function
AddTags
* Adds tags to the runner.<br/>Logs the result. * * @method AddTags * @param {int} num number of tags to add * @param {function} [afterTags] t
mechanics.js:1130
↓ 16 callers
Function
AutomaticTriggers
* Fire active triggers with the given callback name (assumes all are automatic).<br/>Returns the triggers fired.<br/>Nothing is logged. * @method Au
utility.js:2083
↓ 16 callers
Function
CheckInstalled
* Checks whether a card is installed. * * @method CheckInstalled * @param {Card} card card object to check * @returns {Boolean} true if card i
checks.js:428
↓ 16 callers
Function
CheckUnbrokenSubroutines
* Checks whether currently encountered ice has any unbroken subroutines. * * @method CheckUnbrokenSubroutines * @returns {Boolean} true if there
checks.js:345
↓ 16 callers
Function
FullCheckPlay
* Check whether the card can be played, including all costs.</br>Nothing is logged. * * @method FullCheckPlay * @param {Card} card to full check
utility.js:2444
↓ 16 callers
Method
ImplementIcebreaker
( point, card, cardStrength, iceAI, iceStrength, iceSubTypes, costToUpStr,
runcalculator.js:212
↓ 16 callers
Function
URIParameter
* Get the arguments from the browser url ?x= * * @method URIParameter * @param {String} name x * @returns {String} the parameter, or empty str
utility.js:2725
↓ 16 callers
Method
_clicksLeft
()
ai_corp.js:1743
↓ 16 callers
Method
_rootKnownToContainCopyOfCard
(server, title)
ai_runner.js:74
↓ 16 callers
Function
b
(c,e)
jquery/jquery-3.2.1.min.js:2
↓ 16 callers
Function
g
(b,c,d,e)
jquery/jquery-3.2.1.min.js:2
↓ 16 callers
Function
ia
(a)
jquery/jquery-3.2.1.min.js:2
↓ 15 callers
Function
BoostStrength
* Boosts a card's strength.<br/>Logs the change. * * @method BoostStrength * @param {Card} card the card to boost strength of * @param {int} m
utility.js:1534
↓ 15 callers
Function
CheckTrash
* Check whether a card can be trashed (ignoring costs). * * @method CheckTrash * @param {Card} card card object to check * @returns {Boolean}
checks.js:283
↓ 15 callers
Function
MakeRun
* Make a run.<br/>Assumes all checks have been made (e.g. valid server).<br/>Logs the declaration. * * @method MakeRun * @param {Server} server
mechanics.js:11
↓ 15 callers
Function
MouseIsOverServer
* Check whether the mouse is over a given server.<br/>Returns true or false. * * @method MouseIsOverServer * @param {Server} server the server t
utility.js:889
↓ 15 callers
Function
ServerName
* Get the name of a server.<br/>If ignoreRemoteNumbers is true, returns "a remote server" for remotes.<br/>Returns "a new remote server" if server is
utility.js:701
↓ 15 callers
Function
na
(a)
jquery/jquery-3.2.1.min.js:2
↓ 14 callers
Function
CheckClicks
* Checks whether the player has at least the required clicks remaining (does not require action phase or set checkedClick). * * @method CheckClick
checks.js:93
↓ 14 callers
Function
PlayCost
* Gets the play cost of a card.<br/>Nothing is logged. * * @method PlayCost * @param {Card} card to check play cost for * @returns {int} play
utility.js:1856
↓ 14 callers
Function
TriggeredResponsePhase
* Helper function to provide an on-demand pseudophase for simultaneous triggers.</br>Nothing is logged. * * @method TriggeredResponsePhase * @pa
utility.js:2570
↓ 14 callers
Function
UpdateCounters
* Update counter renderers to latest value.<br/>Nothing is logged. * * @method UpdateCounters
utility.js:2699
↓ 14 callers
Function
e
(a,b)
jquery/jquery-3.2.1.min.js:4
↓ 13 callers
Function
E
(a,b,c)
jquery/jquery-3.2.1.min.js:2
↓ 13 callers
Function
RemoveCounters
* Remove counters from a card.<br/>Makes no checks or payments.<br/>Logs the result. * * @method RemoveCounters * @param {Card} card the card to
mechanics.js:1564
↓ 13 callers
Method
_agendasInHand
(ignoreCards=[])
ai_corp.js:733
↓ 12 callers
Function
ChoicesCardInstall
* Create a choices list from a card's install options.</br>Nothing is logged. * * @method ChoicesCardInstall * @param {Card} card to install *
utility.js:2254
↓ 12 callers
Function
F
(a,b)
cardrenderer/webfont.js:20
next →
1–100 of 723, ranked by callers