src/pon2/core/popresult

Source   Edit  

This module implements pop results.

Types

PopResult = object
Pop Results. Source   Edit  

Procs

func cellCount(self: PopResult; cell: Cell): int {.inline, noinit, ...raises: [],
    tags: [], forbids: [].}
Returns the number of cell that popped. If the cell is None, returns 0. Source   Edit  
func coloredPuyoCount(self: PopResult): int {.inline, noinit, ...raises: [],
    tags: [], forbids: [].}
Returns the number of colored puyos that popped. Source   Edit  
func connectionCounts(self: PopResult): array[Cell, seq[int]] {.inline, noinit,
    ...raises: [], tags: [], forbids: [].}
Returns an array of a sequence that represents the numbers of connections. Source   Edit  
func hardToGarbageCount(self: PopResult): int {.inline, noinit, ...raises: [],
    tags: [], forbids: [].}
Returns the number of hard puyos that becomes garbage puyos. Source   Edit  
func init(T: type PopResult): T:type {.inline, noinit, ...raises: [].}
Source   Edit  
func init(T: type PopResult; red, green, blue, yellow, purple, hard,
                             hardToGarbage, garbage, colored: BinaryField): T:type {.
    inline, noinit, ...raises: [].}
Source   Edit  
func isPopped(self: PopResult): bool {.inline, noinit, ...raises: [], tags: [],
                                       forbids: [].}
Returns true if any puyo popped. Source   Edit  
func nuisancePuyoCount(self: PopResult): int {.inline, noinit, ...raises: [],
    tags: [], forbids: [].}
Returns the number of nuisance puyos that popped. Source   Edit  
func puyoCount(self: PopResult): int {.inline, noinit, ...raises: [], tags: [],
                                       forbids: [].}
Returns the number of puyos that popped. Source   Edit