This is the cletris Reference Manual, version 0.9.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:38:23 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cletris
A tetris game.
Nicolas Lamirault <nicolas.lamirault@gmail.com>
Nicolas Lamirault <nicolas.lamirault@gmail.com>
MIT License
0.9.0
pal
(system).
cl-ppcre
(system).
src
(module).
Modules are listed depth-first from the system components tree.
cletris/src
cletris
(system).
package.lisp
(file).
specials.lisp
(file).
cletris.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cletris/src/specials.lisp
package.lisp
(file).
src
(module).
*debug*
(special variable).
*cletris-directory*
(special variable).
*scores*
(special variable).
*speed*
(special variable).
*version*
(special variable).
+background+
(constant).
+blocks+
(constant).
+game-left-corner-x+
(constant).
+game-left-corner-y+
(constant).
+height+
(constant).
+matrix-background+
(constant).
+width+
(constant).
cletris/src/cletris.lisp
specials.lisp
(file).
src
(module).
cletris
(function).
add-line
(function).
background
(class).
clean-matrix
(function).
delete-line
(generic function).
display-about
(function).
display-scores
(function).
draw
(generic function).
draw-block
(function).
draw-game
(function).
draw-square
(function).
finish-game
(function).
game
(class).
game-block
(reader method).
(setf game-block)
(writer method).
game-block-x
(reader method).
(setf game-block-x)
(writer method).
game-block-y
(reader method).
(setf game-block-y)
(writer method).
game-level
(reader method).
(setf game-level)
(writer method).
game-lines
(reader method).
(setf game-lines)
(writer method).
game-matrix
(reader method).
(setf game-matrix)
(writer method).
game-next-block
(reader method).
(setf game-next-block)
(writer method).
game-points
(reader method).
(setf game-points)
(writer method).
get-block
(function).
get-cletris-directory
(function).
get-points
(function).
in-area-p
(function).
init-matrix
(function).
iso-time
(function).
left-right-handler
(function).
make-game
(function).
random-elt
(function).
read-scores
(function).
rotate
(function).
show-matrix
(function).
tetris
(class).
tetris-image
(reader method).
(setf tetris-image)
(writer method).
update-matrix
(function).
update-scores
(function).
write-scores
(function).
Packages are listed by definition order.
cletris
A Tetris game.
common-lisp
.
*cletris-directory*
(special variable).
*scores*
(special variable).
*speed*
(special variable).
*version*
(special variable).
+background+
(constant).
+blocks+
(constant).
+game-left-corner-x+
(constant).
+game-left-corner-y+
(constant).
+height+
(constant).
+matrix-background+
(constant).
+width+
(constant).
add-line
(function).
background
(class).
clean-matrix
(function).
delete-line
(generic function).
display-about
(function).
display-scores
(function).
draw
(generic function).
draw-block
(function).
draw-game
(function).
draw-square
(function).
finish-game
(function).
game
(class).
game-block
(generic reader).
(setf game-block)
(generic writer).
game-block-x
(generic reader).
(setf game-block-x)
(generic writer).
game-block-y
(generic reader).
(setf game-block-y)
(generic writer).
game-level
(generic reader).
(setf game-level)
(generic writer).
game-lines
(generic reader).
(setf game-lines)
(generic writer).
game-matrix
(generic reader).
(setf game-matrix)
(generic writer).
game-next-block
(generic reader).
(setf game-next-block)
(generic writer).
game-points
(generic reader).
(setf game-points)
(generic writer).
get-block
(function).
get-cletris-directory
(function).
get-points
(function).
in-area-p
(function).
init-matrix
(function).
iso-time
(function).
left-right-handler
(function).
make-game
(function).
random-elt
(function).
read-scores
(function).
rotate
(function).
show-matrix
(function).
tetris
(class).
tetris-image
(generic reader).
(setf tetris-image)
(generic writer).
update-matrix
(function).
update-scores
(function).
write-scores
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
When T, active some logs for debugging.
Start a new Tetris game.
USERNAME could be used for the user name in a network session.
The default height.
The default width.
Directory with contains CLETRIS source files.
The best scores.
Add a line which contains a few blocks to MATRIX.
Search filled lines into MATRIX and delete them. Return number of fulled lines deleted.
Show about informations if no games running.
Show best scores.
Print a block on (x,y) coordonates.
Draw the MATRIX game, old blocks, current BLOCK and the NEXT-BLOCK. LINES and LEVEL is for the user.
Draw a square from (X,Y) with color defined by R G B codes.
Finish the user’s game.
Get a new random colored block using the random state RS.
Get the home directory of Cletris.
Return the number of points from number of deleted lines.
Check if the current BLOCK is in the area. KEY is :left or :right.
Creates a new matrix.
Returns the universal time TIME as a string in full ISO format.
Manage left or right BLOCK movement specified by KEY. Return the new BLOCK-X.
Creates a new Tetris game client.
Load the best scores.
Rotate the BLOCK if the new rotated block is in the game area.
Print to STREAM the MATRIX.
Update the matrix saving the current block.
Update the score’s file. Add POINTS of USERNAME in the score list. Return a list of the 10 best scores.
Write the best scores.
Handler for when a a game-client delete a line.
Draw a Tetris game.
Initarg | Value |
---|---|
:image | (tag (quote background)) |
A new Tetris game.
:matrix
common-lisp
.
:block
:next-block
:block-x
:block-y
0
:level
0
:lines
0
:points
:image
Jump to: | (
A C D F G I L M R S T U W |
---|
Jump to: | (
A C D F G I L M R S T U W |
---|
Jump to: | *
+
B C I L M N P S |
---|
Jump to: | *
+
B C I L M N P S |
---|
Jump to: | B C F G M P S T |
---|
Jump to: | B C F G M P S T |
---|