Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new Block(isBomb: boolean, posX: any, posY: any): Block

Properties

Protected dom

dom: any

Private hasClicked

hasClicked: boolean = false

Protected htmlStr

htmlStr: string

Protected id

id: string

Private isBomb

isBomb: boolean

point

point: number = 0

Private rightClickState

rightClickState: StateMachine

Private x

x: number

Private y

y: number

Methods

Private bindEvent

  • bindEvent(): void

Private exploade

  • exploade(id: any): void

getHTMLStr

  • getHTMLStr(): string

Private initState

  • initState(): void

isbomb

  • isbomb(): boolean

Private listenEvent

  • listenEvent(): void

Private showPoint

  • showPoint(x: any, y: any): void
  • 展示此格子的值,如果此格子为空白点,则触发 ‘blank_expand’事件

    Parameters

    • x: any
    • y: any

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc