示例#1
0
    /* PUBLIC API */

    public void produce()
    /* Depending on the blockType, perform any production effects. */
    {
        if (blockType == BlockType.BLUE)
        {
            TrialLogic.gainIum(1);
        }
        else if (blockType == BlockType.YELLOW)
        {
            TrialLogic.drawCard();
        }

        EventLog.LogEvent($"Produced for blockType {blockType} at {gridIndices}.");
    }
示例#2
0
    public void onBlockDestroy(Block block)

    /* Run this destroy function if any block in this combo gets destroyed.
     *
     * :param Block block: Block that was destroyed to trigger this block combo action.
     */
    {
        if (blockComboType == BlockComboType.CHECKER_BLUE_RED)
        {
            TrialLogic.gainIum(1);
            block.destroyNeighboringMass();
        }
        else if (blockComboType == BlockComboType.CHECKER_YELLOW_RED)
        {
            TrialLogic.drawCard();
            block.destroyNeighboringMass();
        }
    }