The cl-tetris3d Reference Manual

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-tetris3d Reference Manual

This is the cl-tetris3d Reference Manual, version 0.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed Jun 15 04:05:49 2022 GMT+0.

Table of Contents


1 Introduction

cl-tetris3d

Yet another 3D tetris.

Screenshot

How to run:

> (ql:quickload :cl-tetris3d)
> (cl-tetris3d:run)

Enjoy!

Controls:

Make executable (SBCL Only!):

There are two ways to do it:

  1. Run interpeter from shell (it doesn't work within Slime), and run the following commands from REPL:
> (ql:quickload :cl-tetris3d)
> (cl-tetris3d:make-executable)
  1. Run ./sbcl-make-executable.run script

After that you should get the ./cl-tetris3d binary.


2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-tetris3d

Yet another 3D Tetris clone

Maintainer

Nedokushev Michael <michael.nedokushev@gmail.com>

Author

Nedokushev Michael <michael.nedokushev@gmail.com>

License

MIT (also see COPYING file for details)

Version

0.0.1

Dependencies
  • cl-opengl (system).
  • lispbuilder-sdl (system).
  • cl-glu (system).
  • iterate (system).
Source

cl-tetris3d.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.1 cl-tetris3d/cl-tetris3d.asd

Source

cl-tetris3d.asd.

Parent Component

cl-tetris3d (system).

ASDF Systems

cl-tetris3d.

Packages

cl-tetris3d-asd.


3.1.2 cl-tetris3d/package.lisp

Source

cl-tetris3d.asd.

Parent Component

cl-tetris3d (system).

Packages

cl-tetris3d.


3.1.3 cl-tetris3d/tetris.lisp

Dependency

package.lisp (file).

Source

cl-tetris3d.asd.

Parent Component

cl-tetris3d (system).

Public Interface
Internals

4 Packages

Packages are listed by definition order.


Next: , Previous: , Up: Packages   [Contents][Index]

4.1 cl-tetris3d-asd

Source

cl-tetris3d.asd.

Use List
  • asdf/interface.
  • common-lisp.

Previous: , Up: Packages   [Contents][Index]

4.2 cl-tetris3d

Source

package.lisp.

Use List
  • common-lisp.
  • iterate.
Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Public Interface


5.1.1 Ordinary functions

Function: make-executable ()
Package

cl-tetris3d.

Source

tetris.lisp.

Function: run (&key width height bpp)
Package

cl-tetris3d.

Source

tetris.lisp.


5.2 Internals


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.1 Special variables

Special Variable: *figures*
Package

cl-tetris3d.

Source

tetris.lisp.


5.2.2 Macros

Macro: do-dotimes-twice ((h w) &body body)
Package

cl-tetris3d.

Source

tetris.lisp.


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.3 Ordinary functions

Function: build-cube (height width)
Package

cl-tetris3d.

Source

tetris.lisp.

Function: gl-init (width height)
Package

cl-tetris3d.

Source

tetris.lisp.

Function: random-color ()
Package

cl-tetris3d.

Source

tetris.lisp.


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.4 Generic functions

Generic Reader: body (object)
Package

cl-tetris3d.

Methods
Reader Method: body ((figure figure))

automatically generated reader method

Source

tetris.lisp.

Target Slot

body.

Generic Writer: (setf body) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf body) ((figure figure))

automatically generated writer method

Source

tetris.lisp.

Target Slot

body.

Generic Function: choose-figure (figure arena)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: choose-figure ((figure figure) (arena arena))
Generic Reader: color (object)
Package

cl-tetris3d.

Methods
Reader Method: color ((figure figure))

automatically generated reader method

Source

tetris.lisp.

Target Slot

color.

Generic Writer: (setf color) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf color) ((figure figure))

automatically generated writer method

Source

tetris.lisp.

Target Slot

color.

Generic Function: draw-arena (arena)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: draw-arena ((arena arena))
Generic Function: draw-figure (figure arena)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: draw-figure ((figure figure) (arena arena))
Generic Function: draw-world (arena figure &key x y z)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: draw-world ((arena arena) (figure figure) &key x y z)
Generic Reader: field (object)
Package

cl-tetris3d.

Methods
Reader Method: field ((arena arena))

automatically generated reader method

Source

tetris.lisp.

Target Slot

field.

Generic Writer: (setf field) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf field) ((arena arena))

automatically generated writer method

Source

tetris.lisp.

Target Slot

field.

Generic Function: figure->arena (figure arena)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: figure->arena ((figure figure) (arena arena))
Generic Reader: height (object)
Package

cl-tetris3d.

Methods
Reader Method: height ((arena arena))

automatically generated reader method

Source

tetris.lisp.

Target Slot

height.

Generic Writer: (setf height) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf height) ((arena arena))

automatically generated writer method

Source

tetris.lisp.

Target Slot

height.

Generic Function: move-figure (figure arena &key move-sideways)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: move-figure ((figure figure) (arena arena) &key move-sideways)
Generic Function: rotate-collision-p (figure arena)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: rotate-collision-p ((figure figure) (arena arena))
Generic Function: rotate-figure-clockwise (figure)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: rotate-figure-clockwise ((figure figure))
Generic Function: rotate-figure-counterclockwise (figure)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: rotate-figure-counterclockwise ((figure figure))
Generic Function: vanish-lines (arena)
Package

cl-tetris3d.

Source

tetris.lisp.

Methods
Method: vanish-lines ((arena arena))
Generic Reader: width (object)
Package

cl-tetris3d.

Methods
Reader Method: width ((arena arena))

automatically generated reader method

Source

tetris.lisp.

Target Slot

width.

Generic Writer: (setf width) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf width) ((arena arena))

automatically generated writer method

Source

tetris.lisp.

Target Slot

width.

Generic Reader: x (object)
Package

cl-tetris3d.

Methods
Reader Method: x ((figure figure))

automatically generated reader method

Source

tetris.lisp.

Target Slot

x.

Generic Writer: (setf x) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf x) ((figure figure))

automatically generated writer method

Source

tetris.lisp.

Target Slot

x.

Generic Reader: x-d (object)
Package

cl-tetris3d.

Methods
Reader Method: x-d ((figure figure))

automatically generated reader method

Source

tetris.lisp.

Target Slot

x-d.

Generic Writer: (setf x-d) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf x-d) ((figure figure))

automatically generated writer method

Source

tetris.lisp.

Target Slot

x-d.

Generic Reader: y (object)
Package

cl-tetris3d.

Methods
Reader Method: y ((figure figure))

automatically generated reader method

Source

tetris.lisp.

Target Slot

y.

Generic Writer: (setf y) (object)
Package

cl-tetris3d.

Methods
Writer Method: (setf y) ((figure figure))

automatically generated writer method

Source

tetris.lisp.

Target Slot

y.


Previous: , Up: Internals   [Contents][Index]

5.2.5 Classes

Class: arena
Package

cl-tetris3d.

Source

tetris.lisp.

Direct methods
Direct slots
Slot: width
Initform

8

Initargs

:width

Readers

width.

Writers

(setf width).

Slot: height
Initform

12

Initargs

:height

Readers

height.

Writers

(setf height).

Slot: field
Initform

(make-array (quote (12 8)) :initial-element nil)

Initargs

:field

Readers

field.

Writers

(setf field).

Class: figure
Package

cl-tetris3d.

Source

tetris.lisp.

Direct methods
Direct slots
Slot: x
Initform

0

Initargs

:x

Readers

x.

Writers

(setf x).

Slot: y
Initform

0

Initargs

:y

Readers

y.

Writers

(setf y).

Slot: x-d
Initform

0

Initargs

:x-d

Readers

x-d.

Writers

(setf x-d).

Slot: color
Initform

(cl-tetris3d::random-color)

Initargs

:color

Readers

color.

Writers

(setf color).

Slot: body
Initargs

:body

Readers

body.

Writers

(setf body).


Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts


Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
B   C   D   F   G   H   M   R   V   W   X   Y  
Index Entry  Section

(
(setf body): Private generic functions
(setf body): Private generic functions
(setf color): Private generic functions
(setf color): Private generic functions
(setf field): Private generic functions
(setf field): Private generic functions
(setf height): Private generic functions
(setf height): Private generic functions
(setf width): Private generic functions
(setf width): Private generic functions
(setf x): Private generic functions
(setf x): Private generic functions
(setf x-d): Private generic functions
(setf x-d): Private generic functions
(setf y): Private generic functions
(setf y): Private generic functions

B
body: Private generic functions
body: Private generic functions
build-cube: Private ordinary functions

C
choose-figure: Private generic functions
choose-figure: Private generic functions
color: Private generic functions
color: Private generic functions

D
do-dotimes-twice: Private macros
draw-arena: Private generic functions
draw-arena: Private generic functions
draw-figure: Private generic functions
draw-figure: Private generic functions
draw-world: Private generic functions
draw-world: Private generic functions

F
field: Private generic functions
field: Private generic functions
figure->arena: Private generic functions
figure->arena: Private generic functions
Function, build-cube: Private ordinary functions
Function, gl-init: Private ordinary functions
Function, make-executable: Public ordinary functions
Function, random-color: Private ordinary functions
Function, run: Public ordinary functions

G
Generic Function, (setf body): Private generic functions
Generic Function, (setf color): Private generic functions
Generic Function, (setf field): Private generic functions
Generic Function, (setf height): Private generic functions
Generic Function, (setf width): Private generic functions
Generic Function, (setf x): Private generic functions
Generic Function, (setf x-d): Private generic functions
Generic Function, (setf y): Private generic functions
Generic Function, body: Private generic functions
Generic Function, choose-figure: Private generic functions
Generic Function, color: Private generic functions
Generic Function, draw-arena: Private generic functions
Generic Function, draw-figure: Private generic functions
Generic Function, draw-world: Private generic functions
Generic Function, field: Private generic functions
Generic Function, figure->arena: Private generic functions
Generic Function, height: Private generic functions
Generic Function, move-figure: Private generic functions
Generic Function, rotate-collision-p: Private generic functions
Generic Function, rotate-figure-clockwise: Private generic functions
Generic Function, rotate-figure-counterclockwise: Private generic functions
Generic Function, vanish-lines: Private generic functions
Generic Function, width: Private generic functions
Generic Function, x: Private generic functions
Generic Function, x-d: Private generic functions
Generic Function, y: Private generic functions
gl-init: Private ordinary functions

H
height: Private generic functions
height: Private generic functions

M
Macro, do-dotimes-twice: Private macros
make-executable: Public ordinary functions
Method, (setf body): Private generic functions
Method, (setf color): Private generic functions
Method, (setf field): Private generic functions
Method, (setf height): Private generic functions
Method, (setf width): Private generic functions
Method, (setf x): Private generic functions
Method, (setf x-d): Private generic functions
Method, (setf y): Private generic functions
Method, body: Private generic functions
Method, choose-figure: Private generic functions
Method, color: Private generic functions
Method, draw-arena: Private generic functions
Method, draw-figure: Private generic functions
Method, draw-world: Private generic functions
Method, field: Private generic functions
Method, figure->arena: Private generic functions
Method, height: Private generic functions
Method, move-figure: Private generic functions
Method, rotate-collision-p: Private generic functions
Method, rotate-figure-clockwise: Private generic functions
Method, rotate-figure-counterclockwise: Private generic functions
Method, vanish-lines: Private generic functions
Method, width: Private generic functions
Method, x: Private generic functions
Method, x-d: Private generic functions
Method, y: Private generic functions
move-figure: Private generic functions
move-figure: Private generic functions

R
random-color: Private ordinary functions
rotate-collision-p: Private generic functions
rotate-collision-p: Private generic functions
rotate-figure-clockwise: Private generic functions
rotate-figure-clockwise: Private generic functions
rotate-figure-counterclockwise: Private generic functions
rotate-figure-counterclockwise: Private generic functions
run: Public ordinary functions

V
vanish-lines: Private generic functions
vanish-lines: Private generic functions

W
width: Private generic functions
width: Private generic functions

X
x: Private generic functions
x: Private generic functions
x-d: Private generic functions
x-d: Private generic functions

Y
y: Private generic functions
y: Private generic functions

Jump to:   (  
B   C   D   F   G   H   M   R   V   W   X   Y