Type-Bound Procedures
procedure, public :: clear_lines
-
private subroutine clear_lines(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Field), |
intent(inout) |
|
| :: |
self | |
procedure, public :: levelup
-
private subroutine levelup(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Field), |
intent(inout) |
|
| :: |
self | |
procedure, public :: setup
-
private subroutine setup(self, W, H, x0, AI, difffact, debug)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Field), |
intent(inout) |
|
| :: |
self | |
integer, |
intent(in) |
|
| :: |
W | |
integer, |
intent(in) |
|
| :: |
H | |
integer, |
intent(in), |
optional |
| :: |
x0 | |
logical, |
intent(in), |
optional |
| :: |
AI | |
real, |
intent(in), |
optional |
| :: |
difffact | |
logical, |
intent(in), |
optional |
| :: |
debug | |
procedure, public :: horizflip
-
private subroutine horizflip(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
procedure, public :: vertflip
-
private subroutine vertflip(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
procedure, public :: spawn_block
-
private subroutine spawn_block(self, F, NP)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
class(Field), |
intent(inout) |
|
| :: |
F | |
class(Piece), |
intent(inout), |
optional |
| :: |
NP | |
procedure, public :: dissolver
-
private subroutine dissolver(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
procedure, public :: move_down
-
private recursive subroutine move_down(self, slam)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
logical, |
intent(in), |
optional |
| :: |
slam | |
procedure, public :: rotate
-
private subroutine rotate(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
procedure, public :: move_left
-
private subroutine move_left(self, slam)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
logical, |
intent(in), |
optional |
| :: |
slam | |
procedure, public :: move_right
-
private subroutine move_right(self, slam)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
logical, |
intent(in), |
optional |
| :: |
slam | |
procedure, public :: check_collision
-
private function check_collision(self) result(collided)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
Return Value logical
-
private subroutine init_block(self, F, btype, x, y)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
class(Field), |
intent(in) |
|
| :: |
F | |
character, |
intent(in), |
optional |
| :: |
btype | |
integer, |
intent(in), |
optional |
| :: |
x | |
integer, |
intent(in), |
optional |
| :: |
y | |
procedure, private :: hit_block
-
private function hit_block(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
Return Value logical
procedure, private :: hit_floor
-
private function hit_floor(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
Return Value logical
procedure, private :: hit_horiz
-
private function hit_horiz(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(inout) |
|
| :: |
self | |
Return Value logical
procedure, private :: tell_why
-
private subroutine tell_why(self, msg)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(in) |
|
| :: |
self | |
character(len=*), |
intent(in), |
optional |
| :: |
msg | |
procedure, private :: randomx
-
private function randomx(self)
Arguments
Type |
Intent | Optional |
Attributes | | Name | |
class(Piece), |
intent(in) |
|
| :: |
self | |
Return Value integer