game Module



Contents


Variables

TypeVisibility AttributesNameInitial
type(Field), public :: F(2)
integer, public :: trate
integer, public :: players
logical, public :: update =.false.
logical, public :: debug =.false.
real, public :: difffact

Subroutines

public subroutine main_game(W, H)

get tick rae

Read more…

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: W
integer, intent(in) :: H

public subroutine mainsub(F, P, NP)

time's up, move piece one step down. real(trate) is necessary for float time comparison!

Arguments

Type IntentOptional AttributesName
class(Field) :: F
type(Piece) :: P
type(Piece) :: NP

public subroutine redraw(F, P, NP)

Arguments

Type IntentOptional AttributesName
class(Field), intent(in) :: F
class(Piece), intent(in) :: P
class(Piece), intent(in) :: NP

public subroutine cmd_parse(W, H)

Arguments

Type IntentOptional AttributesName
integer, intent(out) :: W
integer, intent(out) :: H

public subroutine draw_screen(F)

Arguments

Type IntentOptional AttributesName
class(Field), intent(in) :: F

public subroutine draw_score(F)

Arguments

Type IntentOptional AttributesName
class(Field), intent(in) :: F