The asteroids Reference Manual

This is the asteroids Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sat Dec 03 19:30:53 2022 GMT+0.

Table of Contents


1 Introduction


2 Systems

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


2.1 asteroids

An improved asteroids game with sounds

Author

<>

License

Do Whatever The Fuck You Want (DWTFYF)

Dependencies
  • lispbuilder-sdl (system).
  • lispbuilder-sdl-gfx (system).
  • lispbuilder-sdl-mixer (system).
Source

asteroids.asd.

Child Components

3 Files

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


3.1 Lisp


3.1.1 asteroids/asteroids.asd

Source

asteroids.asd.

Parent Component

asteroids (system).

ASDF Systems

asteroids.


3.1.2 asteroids/package.lisp

Source

asteroids.asd.

Parent Component

asteroids (system).

Packages

asteroids.


3.1.3 asteroids/asteroids.lisp

Dependency

package.lisp (file).

Source

asteroids.asd.

Parent Component

asteroids (system).

Public Interface
Internals

3.2 Static


3.2.1 asteroids/sounds/banjo.mp3

Dependency

asteroids.lisp (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.2 asteroids/sounds/biding.mp3

Dependency

sounds/banjo.mp3 (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.3 asteroids/sounds/explode1.wav

Dependency

sounds/biding.mp3 (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.4 asteroids/sounds/explode2.wav

Dependency

sounds/explode1.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.5 asteroids/sounds/explode3.wav

Dependency

sounds/explode2.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.6 asteroids/sounds/fire.wav

Dependency

sounds/explode3.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.7 asteroids/sounds/haters.mp3

Dependency

sounds/fire.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.8 asteroids/sounds/life.wav

Dependency

sounds/haters.mp3 (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.9 asteroids/sounds/lsaucer.wav

Dependency

sounds/life.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.10 asteroids/sounds/music.mp3

Dependency

sounds/lsaucer.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.11 asteroids/sounds/phaser.wav

Dependency

sounds/music.mp3 (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.12 asteroids/sounds/sfire.wav

Dependency

sounds/phaser.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.13 asteroids/sounds/ssaucer.wav

Dependency

sounds/sfire.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.14 asteroids/sounds/thrust.wav

Dependency

sounds/ssaucer.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.15 asteroids/sounds/thumphi.wav

Dependency

sounds/thrust.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


3.2.16 asteroids/sounds/thumplo.wav

Dependency

sounds/thumphi.wav (file).

Source

asteroids.asd.

Parent Component

asteroids (system).


4 Packages

Packages are listed by definition order.


4.1 asteroids

Source

package.lisp.

Use List
  • common-lisp.
  • lispbuilder-sdl.
Public Interface

main (function).

Internals

5 Definitions

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


5.1 Public Interface


5.1.1 Ordinary functions

Function: main ()
Package

asteroids.

Source

asteroids.lisp.


5.1.2 Standalone methods

Method: initialize-instance :after ((ship ship) &key)
Source

asteroids.lisp.

Method: initialize-instance :after ((rock rock) &key)
Source

asteroids.lisp.

Method: initialize-instance :after ((powerup powerup) &key)
Source

asteroids.lisp.

Method: initialize-instance :after ((missile missile) &key)
Source

asteroids.lisp.

Method: initialize-instance :after ((timer timer) &key)
Source

asteroids.lisp.


5.2 Internals


5.2.1 Constants

Constant: +degrees+
Package

asteroids.

Source

asteroids.lisp.


5.2.2 Special variables

Special Variable: *explosion-color*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *explosion-max-radius*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *friction*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *is-thrusting*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *lr-map*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *missile-velocity*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *powerup-max-age*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *rock-sides*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *screen-height*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *screen-width*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *sound*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *thrust-factor*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *window*
Package

asteroids.

Source

asteroids.lisp.

Special Variable: *world*
Package

asteroids.

Source

asteroids.lisp.


5.2.3 Macros

Macro: handling-errors (&body body)
Package

asteroids.

Source

asteroids.lisp.


5.2.4 Ordinary functions

Function: apres (world timer-name &key seconds fun)
Package

asteroids.

Source

asteroids.lisp.

Function: asteroids ()
Package

asteroids.

Source

asteroids.lisp.

Function: key-processor (world key &key down)
Package

asteroids.

Source

asteroids.lisp.

Function: key-processor-attract (world key &key down)
Package

asteroids.

Source

asteroids.lisp.

Function: key-processor-game (world key &key down)
Package

asteroids.

Source

asteroids.lisp.

Function: make-random-powerup (&key pos velocity)
Package

asteroids.

Source

asteroids.lisp.

Function: music-finished-action ()
Package

asteroids.

Source

asteroids.lisp.

Function: my-distance (a b)
Package

asteroids.

Source

asteroids.lisp.

Function: polygon1 (coords radius-of direction)

return a list of vertices (points) suitable for draw-polygon

Package

asteroids.

Source

asteroids.lisp.

Function: radial-point-from (p radius angle)
Package

asteroids.

Source

asteroids.lisp.

Function: radial-points-from (coord radius angles)

return a list of points located along the radius around p, at list of angles

Package

asteroids.

Source

asteroids.lisp.

Function: repl ()
Package

asteroids.

Source

asteroids.lisp.

Function: sample-finished-action ()
Package

asteroids.

Source

asteroids.lisp.

Function: ship-fire (ship)
Package

asteroids.

Source

asteroids.lisp.

Function: update-world (world)
Package

asteroids.

Source

asteroids.lisp.

Function: xy-off-create (angle-rad magnitude)

Create a ’xy-off’

Package

asteroids.

Source

asteroids.lisp.

Function: xy-off-scale (v factor)
Package

asteroids.

Source

asteroids.lisp.

Function: xy-off-subtract (a b)
Package

asteroids.

Source

asteroids.lisp.

Function: xy-off-sum (a b)
Package

asteroids.

Source

asteroids.lisp.


5.2.5 Generic functions

Generic Reader: acceleration-of (object)
Package

asteroids.

Methods
Reader Method: acceleration-of ((ship ship))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

acceleration.

Generic Writer: (setf acceleration-of) (object)
Package

asteroids.

Methods
Writer Method: (setf acceleration-of) ((ship ship))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

acceleration.

Generic Function: add-freeze (world &key seconds)
Package

asteroids.

Methods
Method: add-freeze ((world world) &key seconds)
Source

asteroids.lisp.

Generic Function: add-score (world score)
Package

asteroids.

Methods
Method: add-score ((world world) (rock rock))
Source

asteroids.lisp.

Method: add-score ((world world) (powerup powerup))
Source

asteroids.lisp.

Method: add-score ((world world) (score number))
Source

asteroids.lisp.

Generic Function: add-shield (ship &key seconds)
Package

asteroids.

Methods
Method: add-shield ((ship ship) &key seconds)
Source

asteroids.lisp.

Generic Function: add-super-missiles (ship &key seconds)
Package

asteroids.

Methods
Method: add-super-missiles ((ship ship) &key seconds)
Source

asteroids.lisp.

Generic Function: add-to (world mob)
Package

asteroids.

Methods
Method: add-to :after ((world world) (powerup powerup))
Source

asteroids.lisp.

Method: add-to :after ((world world) (ship ship))
Source

asteroids.lisp.

Method: add-to :after ((world world) (rock rock))
Source

asteroids.lisp.

Method: add-to ((world world) (mob mob))
Source

asteroids.lisp.

Generic Reader: best-level (object)
Package

asteroids.

Methods
Reader Method: best-level ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

best-level.

Generic Writer: (setf best-level) (object)
Package

asteroids.

Methods
Writer Method: (setf best-level) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

best-level.

Generic Function: break-down (rock world)
Package

asteroids.

Methods
Method: break-down ((rock rock) (world world))
Source

asteroids.lisp.

Generic Function: collide (mob other world)
Package

asteroids.

Methods
Method: collide :before ((missile missile) (rock rock) (world world))
Source

asteroids.lisp.

Method: collide :before ((ship ship) (rock rock) (world world))
Source

asteroids.lisp.

Method: collide :before ((ship ship) (powerup powerup-freeze) (world world))
Source

asteroids.lisp.

Method: collide :before ((ship ship) (powerup powerup) (world world))
Source

asteroids.lisp.

Method: collide :before ((ship ship) (powerup powerup-missile) (world world))
Source

asteroids.lisp.

Method: collide :before ((ship ship) (powerup powerup-shield) (world world))
Source

asteroids.lisp.

Method: collide ((mob mob) (other mob) (world world))
Source

asteroids.lisp.

Generic Reader: direction-of (object)
Package

asteroids.

Methods
Reader Method: direction-of ((mob-rot mob-rot))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

direction.

Generic Writer: (setf direction-of) (object)
Package

asteroids.

Methods
Writer Method: (setf direction-of) ((mob-rot mob-rot))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

direction.

Generic Function: done (timer)
Package

asteroids.

Methods
Method: done ((timer timer))
Source

asteroids.lisp.

Generic Reader: fade (object)
Package

asteroids.

Methods
Reader Method: fade ((x-ship x-ship))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

fade.

Generic Writer: (setf fade) (object)
Package

asteroids.

Methods
Writer Method: (setf fade) ((x-ship x-ship))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

fade.

Generic Function: frozen-p (world)
Package

asteroids.

Methods
Method: frozen-p ((world world))
Source

asteroids.lisp.

Generic Reader: high-score (object)
Package

asteroids.

Methods
Reader Method: high-score ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

high-score.

Generic Writer: (setf high-score) (object)
Package

asteroids.

Methods
Writer Method: (setf high-score) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

high-score.

Generic Function: in-world-p (world mob)
Package

asteroids.

Methods
Method: in-world-p ((world world) (mob mob))
Source

asteroids.lisp.

Generic Function: initialize (sound)
Package

asteroids.

Methods
Method: initialize ((sound sound))
Source

asteroids.lisp.

Generic Function: intersects-p (mob other)
Package

asteroids.

Methods
Method: intersects-p ((mob mob) (other mob))
Source

asteroids.lisp.

Generic Reader: level (object)
Package

asteroids.

Methods
Reader Method: level ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

level.

Generic Writer: (setf level) (object)
Package

asteroids.

Methods
Writer Method: (setf level) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

level.

Generic Function: level-cleared-p (world)
Package

asteroids.

Methods
Method: level-cleared-p ((world world))
Source

asteroids.lisp.

Generic Reader: lifetime (object)
Package

asteroids.

Methods
Reader Method: lifetime ((x-ship x-ship))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

lifetime.

Reader Method: lifetime ((powerup powerup))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

lifetime.

Reader Method: lifetime ((missile missile))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

lifetime.

Generic Writer: (setf lifetime) (object)
Package

asteroids.

Methods
Writer Method: (setf lifetime) ((x-ship x-ship))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

lifetime.

Writer Method: (setf lifetime) ((powerup powerup))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

lifetime.

Writer Method: (setf lifetime) ((missile missile))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

lifetime.

Generic Reader: lives (object)
Package

asteroids.

Methods
Reader Method: lives ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

lives.

Generic Writer: (setf lives) (object)
Package

asteroids.

Methods
Writer Method: (setf lives) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

lives.

Generic Function: map-coords (mob)
Package

asteroids.

Methods
Method: map-coords ((mob mob))

create a point from mob’s fractional coordinates

Source

asteroids.lisp.

Generic Function: map-radius (mob)
Package

asteroids.

Methods
Method: map-radius ((mob mob))
Source

asteroids.lisp.

Generic Reader: mobs (object)
Package

asteroids.

Methods
Reader Method: mobs ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

mobs.

Generic Writer: (setf mobs) (object)
Package

asteroids.

Methods
Writer Method: (setf mobs) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

mobs.

Generic Reader: music (object)
Package

asteroids.

Methods
Reader Method: music ((sound sound))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

music.

Generic Writer: (setf music) (object)
Package

asteroids.

Methods
Writer Method: (setf music) ((sound sound))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

music.

Generic Reader: num-of-rocks (object)
Package

asteroids.

Methods
Reader Method: num-of-rocks ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

num-of-rocks.

Generic Writer: (setf num-of-rocks) (object)
Package

asteroids.

Methods
Writer Method: (setf num-of-rocks) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

num-of-rocks.

Generic Reader: opened (object)
Package

asteroids.

Methods
Reader Method: opened ((sound sound))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

opened.

Generic Writer: (setf opened) (object)
Package

asteroids.

Methods
Writer Method: (setf opened) ((sound sound))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

opened.

Generic Reader: paused (object)
Package

asteroids.

Methods
Reader Method: paused ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

paused.

Generic Writer: (setf paused) (object)
Package

asteroids.

Methods
Writer Method: (setf paused) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

paused.

Generic Reader: period (object)
Package

asteroids.

Methods
Reader Method: period ((thumper thumper))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

period.

Generic Writer: (setf period) (object)
Package

asteroids.

Methods
Writer Method: (setf period) ((thumper thumper))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

period.

Generic Reader: phasex (object)
Package

asteroids.

Methods
Reader Method: phasex ((thumper thumper))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

phasex.

Generic Writer: (setf phasex) (object)
Package

asteroids.

Methods
Writer Method: (setf phasex) ((thumper thumper))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

phasex.

Generic Function: play-explode1 (sound)
Package

asteroids.

Methods
Method: play-explode1 ((sound sound))
Source

asteroids.lisp.

Generic Function: play-explode2 (sound)
Package

asteroids.

Methods
Method: play-explode2 ((sound sound))
Source

asteroids.lisp.

Generic Function: play-explode3 (sound)
Package

asteroids.

Methods
Method: play-explode3 ((sound sound))
Source

asteroids.lisp.

Generic Function: play-fire (sound)
Package

asteroids.

Methods
Method: play-fire ((sound sound))
Source

asteroids.lisp.

Generic Function: play-music (sound level)
Package

asteroids.

Methods
Method: play-music ((sound sound) level)
Source

asteroids.lisp.

Generic Function: play-phaser (sound)
Package

asteroids.

Methods
Method: play-phaser ((sound sound))
Source

asteroids.lisp.

Generic Function: play-thrust (sound)
Package

asteroids.

Methods
Method: play-thrust ((sound sound))
Source

asteroids.lisp.

Generic Function: play-thrust-stop (sound)
Package

asteroids.

Methods
Method: play-thrust-stop ((sound sound))
Source

asteroids.lisp.

Generic Function: play-thump-stop (sound)
Package

asteroids.

Methods
Method: play-thump-stop ((sound sound))
Source

asteroids.lisp.

Generic Function: play-thumphi (sound)
Package

asteroids.

Methods
Method: play-thumphi ((sound sound))
Source

asteroids.lisp.

Generic Function: play-thumplo (sound)
Package

asteroids.

Methods
Method: play-thumplo ((sound sound))
Source

asteroids.lisp.

Generic Function: play-ufo1 (sound)
Package

asteroids.

Methods
Method: play-ufo1 ((sound sound))
Source

asteroids.lisp.

Generic Function: play-ufo1-stop (sound)
Package

asteroids.

Methods
Method: play-ufo1-stop ((sound sound))
Source

asteroids.lisp.

Generic Function: play-ufo2 (sound)
Package

asteroids.

Methods
Method: play-ufo2 ((sound sound))
Source

asteroids.lisp.

Generic Function: play-ufo2-stop (sound)
Package

asteroids.

Methods
Method: play-ufo2-stop ((sound sound))
Source

asteroids.lisp.

Generic Reader: pos-of (object)
Package

asteroids.

Methods
Reader Method: pos-of ((mob mob))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

pos.

Generic Writer: (setf pos-of) (object)
Package

asteroids.

Methods
Writer Method: (setf pos-of) ((mob mob))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

pos.

Generic Function: powerup-active-p (ship powerup)
Package

asteroids.

Methods
Method: powerup-active-p ((ship ship) powerup)
Source

asteroids.lisp.

Generic Reader: radii (object)
Package

asteroids.

Methods
Reader Method: radii ((rock rock))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

radii.

Generic Writer: (setf radii) (object)
Package

asteroids.

Methods
Writer Method: (setf radii) ((rock rock))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

radii.

Generic Reader: radius-of (object)
Package

asteroids.

Methods
Reader Method: radius-of ((mob mob))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

radius.

Generic Writer: (setf radius-of) (object)
Package

asteroids.

Methods
Writer Method: (setf radius-of) ((mob mob))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

radius.

Generic Function: remove-from (world mob)
Package

asteroids.

Methods
Method: remove-from :after ((world world) (powerup powerup))
Source

asteroids.lisp.

Method: remove-from :after ((world world) (ship ship))
Source

asteroids.lisp.

Method: remove-from :after ((world world) (rock rock))
Source

asteroids.lisp.

Method: remove-from ((world world) (mob mob))
Source

asteroids.lisp.

Generic Function: render (mob)
Package

asteroids.

Methods
Method: render ((x-ship x-ship))
Source

asteroids.lisp.

Method: render ((ship ship))
Source

asteroids.lisp.

Method: render ((powerup powerup-shield))
Source

asteroids.lisp.

Method: render ((powerup powerup-freeze))
Source

asteroids.lisp.

Method: render ((powerup powerup-missile))
Source

asteroids.lisp.

Method: render ((explosion explosion))
Source

asteroids.lisp.

Method: render ((missile missile))
Source

asteroids.lisp.

Method: render ((rock rock))
Source

asteroids.lisp.

Method: render ((mob mob))
Source

asteroids.lisp.

Generic Function: render-attract (world)
Package

asteroids.

Methods
Method: render-attract ((world world))
Source

asteroids.lisp.

Generic Function: render-world (world)
Package

asteroids.

Methods
Method: render-world ((world world))
Source

asteroids.lisp.

Generic Function: render-world-game (world)
Package

asteroids.

Methods
Method: render-world-game ((world world))
Source

asteroids.lisp.

Generic Function: reset (sound)
Package

asteroids.

Methods
Method: reset ((world world))
Source

asteroids.lisp.

Method: reset ((sound sound))
Source

asteroids.lisp.

Generic Reader: rotation-of (object)
Package

asteroids.

Methods
Reader Method: rotation-of ((mob-rot mob-rot))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

rotation.

Generic Writer: (setf rotation-of) (object)
Package

asteroids.

Methods
Writer Method: (setf rotation-of) ((mob-rot mob-rot))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

rotation.

Generic Reader: sample (object)
Package

asteroids.

Methods
Reader Method: sample ((sound sound))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

sample.

Generic Writer: (setf sample) (object)
Package

asteroids.

Methods
Writer Method: (setf sample) ((sound sound))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

sample.

Generic Reader: score (object)
Package

asteroids.

Methods
Reader Method: score ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

score.

Generic Writer: (setf score) (object)
Package

asteroids.

Methods
Writer Method: (setf score) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

score.

Generic Writer: set-radius (new-value object)
Package

asteroids.

Methods
Writer Method: set-radius ((new-value mob) mob)

automatically generated writer method

Source

asteroids.lisp.

Target Slot

radius.

Generic Function: set-seconds (timer seconds)
Package

asteroids.

Methods
Method: set-seconds ((timer timer) seconds)
Source

asteroids.lisp.

Generic Reader: ship (object)
Package

asteroids.

Methods
Reader Method: ship ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

ship.

Generic Writer: (setf ship) (object)
Package

asteroids.

Methods
Writer Method: (setf ship) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

ship.

Generic Function: ship-moved (world ship)
Package

asteroids.

Methods
Method: ship-moved ((world world) (ship ship))
Source

asteroids.lisp.

Generic Function: shoot (ship world)
Package

asteroids.

Methods
Method: shoot ((ship ship) (world world))

Fire a missile using ship’s direction

Source

asteroids.lisp.

Generic Function: shut-down (sound)
Package

asteroids.

Methods
Method: shut-down ((sound sound))
Source

asteroids.lisp.

Generic Reader: size-of (object)
Package

asteroids.

Methods
Reader Method: size-of ((rock rock))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

size.

Generic Writer: (setf size-of) (object)
Package

asteroids.

Methods
Writer Method: (setf size-of) ((rock rock))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

size.

Generic Function: start-next-level (world)
Package

asteroids.

Methods
Method: start-next-level ((world world))
Source

asteroids.lisp.

Generic Function: stop-music (sound)
Package

asteroids.

Methods
Method: stop-music ((sound sound))
Source

asteroids.lisp.

Generic Reader: super-p (object)
Package

asteroids.

Methods
Reader Method: super-p ((missile missile))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

super.

Generic Writer: (setf super-p) (object)
Package

asteroids.

Methods
Writer Method: (setf super-p) ((missile missile))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

super.

Generic Reader: target (object)
Package

asteroids.

Methods
Reader Method: target ((thumper thumper))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

target.

Reader Method: target ((timer timer))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

target.

Generic Writer: (setf target) (object)
Package

asteroids.

Methods
Writer Method: (setf target) ((thumper thumper))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

target.

Writer Method: (setf target) ((timer timer))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

target.

Generic Function: thrust (ship)
Package

asteroids.

Methods
Method: thrust ((ship ship))

Set ship’s acceleration using *thrust-factor* and ship’s direction

Source

asteroids.lisp.

Generic Function: thrust-0 (ship)
Package

asteroids.

Methods
Method: thrust-0 ((ship ship))

Set ship’s acceleration to null

Source

asteroids.lisp.

Generic Reader: thumper (object)
Package

asteroids.

Methods
Reader Method: thumper ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

thumper.

Generic Writer: (setf thumper) (object)
Package

asteroids.

Methods
Writer Method: (setf thumper) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

thumper.

Generic Reader: timers (object)
Package

asteroids.

Methods
Reader Method: timers ((world world))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

timers.

Reader Method: timers ((ship ship))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

timers.

Generic Writer: (setf timers) (object)
Package

asteroids.

Methods
Writer Method: (setf timers) ((world world))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

timers.

Writer Method: (setf timers) ((ship ship))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

timers.

Generic Function: update (mob time-delta world)
Package

asteroids.

Methods
Method: update :around ((ship ship) time-delta (world world))
Source

asteroids.lisp.

Method: update :after ((powerup powerup) time-delta (world world))
Source

asteroids.lisp.

Method: update :after ((explosion explosion) time-delta (world world))
Source

asteroids.lisp.

Method: update ((rock rock) time-delta (world world))
Source

asteroids.lisp.

Method: update :after ((x-ship x-ship) time-delta (world world))
Source

asteroids.lisp.

Method: update :after ((missile missile) time-delta (world world))
Source

asteroids.lisp.

Method: update ((mob mob) time-delta (world world))
Source

asteroids.lisp.

Generic Function: update-thumper (thumper)
Package

asteroids.

Methods
Method: update-thumper ((thumper thumper))
Source

asteroids.lisp.

Generic Reader: velocity-of (object)
Package

asteroids.

Methods
Reader Method: velocity-of ((mob mob))

automatically generated reader method

Source

asteroids.lisp.

Target Slot

velocity.

Generic Writer: (setf velocity-of) (object)
Package

asteroids.

Methods
Writer Method: (setf velocity-of) ((mob mob))

automatically generated writer method

Source

asteroids.lisp.

Target Slot

velocity.


5.2.6 Classes

Class: explosion
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

mob.

Direct methods
Class: missile
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

mob.

Direct methods
Direct slots
Slot: super
Initargs

:super

Readers

super-p.

Writers

(setf super-p).

Slot: lifetime
Initform

(make-instance (quote asteroids::timer) :ms 1000)

Readers

lifetime.

Writers

(setf lifetime).

Class: mob
Package

asteroids.

Source

asteroids.lisp.

Direct subclasses
Direct methods
Direct slots
Slot: pos
Initform

(quote (0.5 0.5))

Initargs

:pos

Readers

pos-of.

Writers

(setf pos-of).

Slot: radius
Initform

0

Initargs

:radius

Readers

radius-of.

Writers
Slot: velocity
Initform

(quote (0 0))

Initargs

:velocity

Readers

velocity-of.

Writers

(setf velocity-of).

Class: mob-rot
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

mob.

Direct subclasses
Direct methods
Direct slots
Slot: rotation
Initform

0

Readers

rotation-of.

Writers

(setf rotation-of).

Slot: direction
Initform

0

Initargs

:direction

Readers

direction-of.

Writers

(setf direction-of).

Class: powerup
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

mob.

Direct subclasses
Direct methods
Direct slots
Slot: lifetime
Initform

(make-instance (quote asteroids::timer) :ms asteroids::*powerup-max-age*)

Readers

lifetime.

Writers

(setf lifetime).

Class: powerup-freeze
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

powerup.

Direct methods
Class: powerup-missile
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

powerup.

Direct methods
Class: powerup-shield
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

powerup.

Direct methods
Class: rock
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

mob-rot.

Direct methods
Direct slots
Slot: size
Initform

1

Initargs

:size

Readers

size-of.

Writers

(setf size-of).

Slot: radii
Readers

radii.

Writers

(setf radii).

Class: ship
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

mob-rot.

Direct methods
Direct slots
Slot: timers
Initform

(make-hash-table)

Readers

timers.

Writers

(setf timers).

Slot: acceleration
Initform

(quote (0 0))

Readers

acceleration-of.

Writers

(setf acceleration-of).

Class: sound
Package

asteroids.

Source

asteroids.lisp.

Direct methods
Direct slots
Slot: opened
Readers

opened.

Writers

(setf opened).

Slot: sample
Readers

sample.

Writers

(setf sample).

Slot: music
Readers

music.

Writers

(setf music).

Class: thumper
Package

asteroids.

Source

asteroids.lisp.

Direct methods
Direct slots
Slot: target
Initform

1000

Readers

target.

Writers

(setf target).

Slot: phasex
Initform

1

Readers

phasex.

Writers

(setf phasex).

Slot: period
Initform

1500

Initargs

:period

Readers

period.

Writers

(setf period).

Class: timer
Package

asteroids.

Source

asteroids.lisp.

Direct methods
Direct slots
Slot: target
Initform

0

Initargs

:ms

Readers

target.

Writers

(setf target).

Class: world
Package

asteroids.

Source

asteroids.lisp.

Direct methods
Direct slots
Slot: mobs
Readers

mobs.

Writers

(setf mobs).

Slot: ship
Readers

ship.

Writers

(setf ship).

Slot: timers
Initform

(make-hash-table)

Readers

timers.

Writers

(setf timers).

Slot: level
Initform

0

Readers

level.

Writers

(setf level).

Slot: num-of-rocks
Initform

0

Readers

num-of-rocks.

Writers

(setf num-of-rocks).

Slot: score
Initform

0

Readers

score.

Writers

(setf score).

Slot: best-level
Initform

0

Readers

best-level.

Writers

(setf best-level).

Slot: high-score
Initform

0

Readers

high-score.

Writers

(setf high-score).

Slot: lives
Initform

1

Readers

lives.

Writers

(setf lives).

Slot: paused
Readers

paused.

Writers

(setf paused).

Slot: thumper
Initform

(make-instance (quote asteroids::thumper) :period 1000)

Readers

thumper.

Writers

(setf thumper).

Class: x-ship
Package

asteroids.

Source

asteroids.lisp.

Direct superclasses

mob-rot.

Direct methods
Direct slots
Slot: lifetime
Initform

(make-instance (quote asteroids::timer) :ms 1000)

Readers

lifetime.

Writers

(setf lifetime).

Slot: fade
Initform

255

Readers

fade.

Writers

(setf fade).


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   (  
A   B   C   D   F   G   H   I   K   L   M   N   O   P   R   S   T   U   V   X  
Index Entry  Section

(
(setf acceleration-of): Private generic functions
(setf acceleration-of): Private generic functions
(setf best-level): Private generic functions
(setf best-level): Private generic functions
(setf direction-of): Private generic functions
(setf direction-of): Private generic functions
(setf fade): Private generic functions
(setf fade): Private generic functions
(setf high-score): Private generic functions
(setf high-score): Private generic functions
(setf level): Private generic functions
(setf level): Private generic functions
(setf lifetime): Private generic functions
(setf lifetime): Private generic functions
(setf lifetime): Private generic functions
(setf lifetime): Private generic functions
(setf lives): Private generic functions
(setf lives): Private generic functions
(setf mobs): Private generic functions
(setf mobs): Private generic functions
(setf music): Private generic functions
(setf music): Private generic functions
(setf num-of-rocks): Private generic functions
(setf num-of-rocks): Private generic functions
(setf opened): Private generic functions
(setf opened): Private generic functions
(setf paused): Private generic functions
(setf paused): Private generic functions
(setf period): Private generic functions
(setf period): Private generic functions
(setf phasex): Private generic functions
(setf phasex): Private generic functions
(setf pos-of): Private generic functions
(setf pos-of): Private generic functions
(setf radii): Private generic functions
(setf radii): Private generic functions
(setf radius-of): Private generic functions
(setf radius-of): Private generic functions
(setf rotation-of): Private generic functions
(setf rotation-of): Private generic functions
(setf sample): Private generic functions
(setf sample): Private generic functions
(setf score): Private generic functions
(setf score): Private generic functions
(setf ship): Private generic functions
(setf ship): Private generic functions
(setf size-of): Private generic functions
(setf size-of): Private generic functions
(setf super-p): Private generic functions
(setf super-p): Private generic functions
(setf target): Private generic functions
(setf target): Private generic functions
(setf target): Private generic functions
(setf thumper): Private generic functions
(setf thumper): Private generic functions
(setf timers): Private generic functions
(setf timers): Private generic functions
(setf timers): Private generic functions
(setf velocity-of): Private generic functions
(setf velocity-of): Private generic functions

A
acceleration-of: Private generic functions
acceleration-of: Private generic functions
add-freeze: Private generic functions
add-freeze: Private generic functions
add-score: Private generic functions
add-score: Private generic functions
add-score: Private generic functions
add-score: Private generic functions
add-shield: Private generic functions
add-shield: Private generic functions
add-super-missiles: Private generic functions
add-super-missiles: Private generic functions
add-to: Private generic functions
add-to: Private generic functions
add-to: Private generic functions
add-to: Private generic functions
add-to: Private generic functions
apres: Private ordinary functions
asteroids: Private ordinary functions

B
best-level: Private generic functions
best-level: Private generic functions
break-down: Private generic functions
break-down: Private generic functions

C
collide: Private generic functions
collide: Private generic functions
collide: Private generic functions
collide: Private generic functions
collide: Private generic functions
collide: Private generic functions
collide: Private generic functions
collide: Private generic functions

D
direction-of: Private generic functions
direction-of: Private generic functions
done: Private generic functions
done: Private generic functions

F
fade: Private generic functions
fade: Private generic functions
frozen-p: Private generic functions
frozen-p: Private generic functions
Function, apres: Private ordinary functions
Function, asteroids: Private ordinary functions
Function, key-processor: Private ordinary functions
Function, key-processor-attract: Private ordinary functions
Function, key-processor-game: Private ordinary functions
Function, main: Public ordinary functions
Function, make-random-powerup: Private ordinary functions
Function, music-finished-action: Private ordinary functions
Function, my-distance: Private ordinary functions
Function, polygon1: Private ordinary functions
Function, radial-point-from: Private ordinary functions
Function, radial-points-from: Private ordinary functions
Function, repl: Private ordinary functions
Function, sample-finished-action: Private ordinary functions
Function, ship-fire: Private ordinary functions
Function, update-world: Private ordinary functions
Function, xy-off-create: Private ordinary functions
Function, xy-off-scale: Private ordinary functions
Function, xy-off-subtract: Private ordinary functions
Function, xy-off-sum: Private ordinary functions

G
Generic Function, (setf acceleration-of): Private generic functions
Generic Function, (setf best-level): Private generic functions
Generic Function, (setf direction-of): Private generic functions
Generic Function, (setf fade): Private generic functions
Generic Function, (setf high-score): Private generic functions
Generic Function, (setf level): Private generic functions
Generic Function, (setf lifetime): Private generic functions
Generic Function, (setf lives): Private generic functions
Generic Function, (setf mobs): Private generic functions
Generic Function, (setf music): Private generic functions
Generic Function, (setf num-of-rocks): Private generic functions
Generic Function, (setf opened): Private generic functions
Generic Function, (setf paused): Private generic functions
Generic Function, (setf period): Private generic functions
Generic Function, (setf phasex): Private generic functions
Generic Function, (setf pos-of): Private generic functions
Generic Function, (setf radii): Private generic functions
Generic Function, (setf radius-of): Private generic functions
Generic Function, (setf rotation-of): Private generic functions
Generic Function, (setf sample): Private generic functions
Generic Function, (setf score): Private generic functions
Generic Function, (setf ship): Private generic functions
Generic Function, (setf size-of): Private generic functions
Generic Function, (setf super-p): Private generic functions
Generic Function, (setf target): Private generic functions
Generic Function, (setf thumper): Private generic functions
Generic Function, (setf timers): Private generic functions
Generic Function, (setf velocity-of): Private generic functions
Generic Function, acceleration-of: Private generic functions
Generic Function, add-freeze: Private generic functions
Generic Function, add-score: Private generic functions
Generic Function, add-shield: Private generic functions
Generic Function, add-super-missiles: Private generic functions
Generic Function, add-to: Private generic functions
Generic Function, best-level: Private generic functions
Generic Function, break-down: Private generic functions
Generic Function, collide: Private generic functions
Generic Function, direction-of: Private generic functions
Generic Function, done: Private generic functions
Generic Function, fade: Private generic functions
Generic Function, frozen-p: Private generic functions
Generic Function, high-score: Private generic functions
Generic Function, in-world-p: Private generic functions
Generic Function, initialize: Private generic functions
Generic Function, intersects-p: Private generic functions
Generic Function, level: Private generic functions
Generic Function, level-cleared-p: Private generic functions
Generic Function, lifetime: Private generic functions
Generic Function, lives: Private generic functions
Generic Function, map-coords: Private generic functions
Generic Function, map-radius: Private generic functions
Generic Function, mobs: Private generic functions
Generic Function, music: Private generic functions
Generic Function, num-of-rocks: Private generic functions
Generic Function, opened: Private generic functions
Generic Function, paused: Private generic functions
Generic Function, period: Private generic functions
Generic Function, phasex: Private generic functions
Generic Function, play-explode1: Private generic functions
Generic Function, play-explode2: Private generic functions
Generic Function, play-explode3: Private generic functions
Generic Function, play-fire: Private generic functions
Generic Function, play-music: Private generic functions
Generic Function, play-phaser: Private generic functions
Generic Function, play-thrust: Private generic functions
Generic Function, play-thrust-stop: Private generic functions
Generic Function, play-thump-stop: Private generic functions
Generic Function, play-thumphi: Private generic functions
Generic Function, play-thumplo: Private generic functions
Generic Function, play-ufo1: Private generic functions
Generic Function, play-ufo1-stop: Private generic functions
Generic Function, play-ufo2: Private generic functions
Generic Function, play-ufo2-stop: Private generic functions
Generic Function, pos-of: Private generic functions
Generic Function, powerup-active-p: Private generic functions
Generic Function, radii: Private generic functions
Generic Function, radius-of: Private generic functions
Generic Function, remove-from: Private generic functions
Generic Function, render: Private generic functions
Generic Function, render-attract: Private generic functions
Generic Function, render-world: Private generic functions
Generic Function, render-world-game: Private generic functions
Generic Function, reset: Private generic functions
Generic Function, rotation-of: Private generic functions
Generic Function, sample: Private generic functions
Generic Function, score: Private generic functions
Generic Function, set-radius: Private generic functions
Generic Function, set-seconds: Private generic functions
Generic Function, ship: Private generic functions
Generic Function, ship-moved: Private generic functions
Generic Function, shoot: Private generic functions
Generic Function, shut-down: Private generic functions
Generic Function, size-of: Private generic functions
Generic Function, start-next-level: Private generic functions
Generic Function, stop-music: Private generic functions
Generic Function, super-p: Private generic functions
Generic Function, target: Private generic functions
Generic Function, thrust: Private generic functions
Generic Function, thrust-0: Private generic functions
Generic Function, thumper: Private generic functions
Generic Function, timers: Private generic functions
Generic Function, update: Private generic functions
Generic Function, update-thumper: Private generic functions
Generic Function, velocity-of: Private generic functions

H
handling-errors: Private macros
high-score: Private generic functions
high-score: Private generic functions

I
in-world-p: Private generic functions
in-world-p: Private generic functions
initialize: Private generic functions
initialize: Private generic functions
initialize-instance: Public standalone methods
initialize-instance: Public standalone methods
initialize-instance: Public standalone methods
initialize-instance: Public standalone methods
initialize-instance: Public standalone methods
intersects-p: Private generic functions
intersects-p: Private generic functions

K
key-processor: Private ordinary functions
key-processor-attract: Private ordinary functions
key-processor-game: Private ordinary functions

L
level: Private generic functions
level: Private generic functions
level-cleared-p: Private generic functions
level-cleared-p: Private generic functions
lifetime: Private generic functions
lifetime: Private generic functions
lifetime: Private generic functions
lifetime: Private generic functions
lives: Private generic functions
lives: Private generic functions

M
Macro, handling-errors: Private macros
main: Public ordinary functions
make-random-powerup: Private ordinary functions
map-coords: Private generic functions
map-coords: Private generic functions
map-radius: Private generic functions
map-radius: Private generic functions
Method, (setf acceleration-of): Private generic functions
Method, (setf best-level): Private generic functions
Method, (setf direction-of): Private generic functions
Method, (setf fade): Private generic functions
Method, (setf high-score): Private generic functions
Method, (setf level): Private generic functions
Method, (setf lifetime): Private generic functions
Method, (setf lifetime): Private generic functions
Method, (setf lifetime): Private generic functions
Method, (setf lives): Private generic functions
Method, (setf mobs): Private generic functions
Method, (setf music): Private generic functions
Method, (setf num-of-rocks): Private generic functions
Method, (setf opened): Private generic functions
Method, (setf paused): Private generic functions
Method, (setf period): Private generic functions
Method, (setf phasex): Private generic functions
Method, (setf pos-of): Private generic functions
Method, (setf radii): Private generic functions
Method, (setf radius-of): Private generic functions
Method, (setf rotation-of): Private generic functions
Method, (setf sample): Private generic functions
Method, (setf score): Private generic functions
Method, (setf ship): Private generic functions
Method, (setf size-of): Private generic functions
Method, (setf super-p): Private generic functions
Method, (setf target): Private generic functions
Method, (setf target): Private generic functions
Method, (setf thumper): Private generic functions
Method, (setf timers): Private generic functions
Method, (setf timers): Private generic functions
Method, (setf velocity-of): Private generic functions
Method, acceleration-of: Private generic functions
Method, add-freeze: Private generic functions
Method, add-score: Private generic functions
Method, add-score: Private generic functions
Method, add-score: Private generic functions
Method, add-shield: Private generic functions
Method, add-super-missiles: Private generic functions
Method, add-to: Private generic functions
Method, add-to: Private generic functions
Method, add-to: Private generic functions
Method, add-to: Private generic functions
Method, best-level: Private generic functions
Method, break-down: Private generic functions
Method, collide: Private generic functions
Method, collide: Private generic functions
Method, collide: Private generic functions
Method, collide: Private generic functions
Method, collide: Private generic functions
Method, collide: Private generic functions
Method, collide: Private generic functions
Method, direction-of: Private generic functions
Method, done: Private generic functions
Method, fade: Private generic functions
Method, frozen-p: Private generic functions
Method, high-score: Private generic functions
Method, in-world-p: Private generic functions
Method, initialize: Private generic functions
Method, initialize-instance: Public standalone methods
Method, initialize-instance: Public standalone methods
Method, initialize-instance: Public standalone methods
Method, initialize-instance: Public standalone methods
Method, initialize-instance: Public standalone methods
Method, intersects-p: Private generic functions
Method, level: Private generic functions
Method, level-cleared-p: Private generic functions
Method, lifetime: Private generic functions
Method, lifetime: Private generic functions
Method, lifetime: Private generic functions
Method, lives: Private generic functions
Method, map-coords: Private generic functions
Method, map-radius: Private generic functions
Method, mobs: Private generic functions
Method, music: Private generic functions
Method, num-of-rocks: Private generic functions
Method, opened: Private generic functions
Method, paused: Private generic functions
Method, period: Private generic functions
Method, phasex: Private generic functions
Method, play-explode1: Private generic functions
Method, play-explode2: Private generic functions
Method, play-explode3: Private generic functions
Method, play-fire: Private generic functions
Method, play-music: Private generic functions
Method, play-phaser: Private generic functions
Method, play-thrust: Private generic functions
Method, play-thrust-stop: Private generic functions
Method, play-thump-stop: Private generic functions
Method, play-thumphi: Private generic functions
Method, play-thumplo: Private generic functions
Method, play-ufo1: Private generic functions
Method, play-ufo1-stop: Private generic functions
Method, play-ufo2: Private generic functions
Method, play-ufo2-stop: Private generic functions
Method, pos-of: Private generic functions
Method, powerup-active-p: Private generic functions
Method, radii: Private generic functions
Method, radius-of: Private generic functions
Method, remove-from: Private generic functions
Method, remove-from: Private generic functions
Method, remove-from: Private generic functions
Method, remove-from: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render: Private generic functions
Method, render-attract: Private generic functions
Method, render-world: Private generic functions
Method, render-world-game: Private generic functions
Method, reset: Private generic functions
Method, reset: Private generic functions
Method, rotation-of: Private generic functions
Method, sample: Private generic functions
Method, score: Private generic functions
Method, set-radius: Private generic functions
Method, set-seconds: Private generic functions
Method, ship: Private generic functions
Method, ship-moved: Private generic functions
Method, shoot: Private generic functions
Method, shut-down: Private generic functions
Method, size-of: Private generic functions
Method, start-next-level: Private generic functions
Method, stop-music: Private generic functions
Method, super-p: Private generic functions
Method, target: Private generic functions
Method, target: Private generic functions
Method, thrust: Private generic functions
Method, thrust-0: Private generic functions
Method, thumper: Private generic functions
Method, timers: Private generic functions
Method, timers: Private generic functions
Method, update: Private generic functions
Method, update: Private generic functions
Method, update: Private generic functions
Method, update: Private generic functions
Method, update: Private generic functions
Method, update: Private generic functions
Method, update: Private generic functions
Method, update-thumper: Private generic functions
Method, velocity-of: Private generic functions
mobs: Private generic functions
mobs: Private generic functions
music: Private generic functions
music: Private generic functions
music-finished-action: Private ordinary functions
my-distance: Private ordinary functions

N
num-of-rocks: Private generic functions
num-of-rocks: Private generic functions

O
opened: Private generic functions
opened: Private generic functions

P
paused: Private generic functions
paused: Private generic functions
period: Private generic functions
period: Private generic functions
phasex: Private generic functions
phasex: Private generic functions
play-explode1: Private generic functions
play-explode1: Private generic functions
play-explode2: Private generic functions
play-explode2: Private generic functions
play-explode3: Private generic functions
play-explode3: Private generic functions
play-fire: Private generic functions
play-fire: Private generic functions
play-music: Private generic functions
play-music: Private generic functions
play-phaser: Private generic functions
play-phaser: Private generic functions
play-thrust: Private generic functions
play-thrust: Private generic functions
play-thrust-stop: Private generic functions
play-thrust-stop: Private generic functions
play-thump-stop: Private generic functions
play-thump-stop: Private generic functions
play-thumphi: Private generic functions
play-thumphi: Private generic functions
play-thumplo: Private generic functions
play-thumplo: Private generic functions
play-ufo1: Private generic functions
play-ufo1: Private generic functions
play-ufo1-stop: Private generic functions
play-ufo1-stop: Private generic functions
play-ufo2: Private generic functions
play-ufo2: Private generic functions
play-ufo2-stop: Private generic functions
play-ufo2-stop: Private generic functions
polygon1: Private ordinary functions
pos-of: Private generic functions
pos-of: Private generic functions
powerup-active-p: Private generic functions
powerup-active-p: Private generic functions

R
radial-point-from: Private ordinary functions
radial-points-from: Private ordinary functions
radii: Private generic functions
radii: Private generic functions
radius-of: Private generic functions
radius-of: Private generic functions
remove-from: Private generic functions
remove-from: Private generic functions
remove-from: Private generic functions
remove-from: Private generic functions
remove-from: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render: Private generic functions
render-attract: Private generic functions
render-attract: Private generic functions
render-world: Private generic functions
render-world: Private generic functions
render-world-game: Private generic functions
render-world-game: Private generic functions
repl: Private ordinary functions
reset: Private generic functions
reset: Private generic functions
reset: Private generic functions
rotation-of: Private generic functions
rotation-of: Private generic functions

S
sample: Private generic functions
sample: Private generic functions
sample-finished-action: Private ordinary functions
score: Private generic functions
score: Private generic functions
set-radius: Private generic functions
set-radius: Private generic functions
set-seconds: Private generic functions
set-seconds: Private generic functions
ship: Private generic functions
ship: Private generic functions
ship-fire: Private ordinary functions
ship-moved: Private generic functions
ship-moved: Private generic functions
shoot: Private generic functions
shoot: Private generic functions
shut-down: Private generic functions
shut-down: Private generic functions
size-of: Private generic functions
size-of: Private generic functions
start-next-level: Private generic functions
start-next-level: Private generic functions
stop-music: Private generic functions
stop-music: Private generic functions
super-p: Private generic functions
super-p: Private generic functions

T
target: Private generic functions
target: Private generic functions
target: Private generic functions
thrust: Private generic functions
thrust: Private generic functions
thrust-0: Private generic functions
thrust-0: Private generic functions
thumper: Private generic functions
thumper: Private generic functions
timers: Private generic functions
timers: Private generic functions
timers: Private generic functions

U
update: Private generic functions
update: Private generic functions
update: Private generic functions
update: Private generic functions
update: Private generic functions
update: Private generic functions
update: Private generic functions
update: Private generic functions
update-thumper: Private generic functions
update-thumper: Private generic functions
update-world: Private ordinary functions

V
velocity-of: Private generic functions
velocity-of: Private generic functions

X
xy-off-create: Private ordinary functions
xy-off-scale: Private ordinary functions
xy-off-subtract: Private ordinary functions
xy-off-sum: Private ordinary functions


A.3 Variables

Jump to:   *   +  
A   B   C   D   F   H   L   M   N   O   P   R   S   T   V  
Index Entry  Section

*
*explosion-color*: Private special variables
*explosion-max-radius*: Private special variables
*friction*: Private special variables
*is-thrusting*: Private special variables
*lr-map*: Private special variables
*missile-velocity*: Private special variables
*powerup-max-age*: Private special variables
*rock-sides*: Private special variables
*screen-height*: Private special variables
*screen-width*: Private special variables
*sound*: Private special variables
*thrust-factor*: Private special variables
*window*: Private special variables
*world*: Private special variables

+
+degrees+: Private constants

A
acceleration: Private classes

B
best-level: Private classes

C
Constant, +degrees+: Private constants

D
direction: Private classes

F
fade: Private classes

H
high-score: Private classes

L
level: Private classes
lifetime: Private classes
lifetime: Private classes
lifetime: Private classes
lives: Private classes

M
mobs: Private classes
music: Private classes

N
num-of-rocks: Private classes

O
opened: Private classes

P
paused: Private classes
period: Private classes
phasex: Private classes
pos: Private classes

R
radii: Private classes
radius: Private classes
rotation: Private classes

S
sample: Private classes
score: Private classes
ship: Private classes
size: Private classes
Slot, acceleration: Private classes
Slot, best-level: Private classes
Slot, direction: Private classes
Slot, fade: Private classes
Slot, high-score: Private classes
Slot, level: Private classes
Slot, lifetime: Private classes
Slot, lifetime: Private classes
Slot, lifetime: Private classes
Slot, lives: Private classes
Slot, mobs: Private classes
Slot, music: Private classes
Slot, num-of-rocks: Private classes
Slot, opened: Private classes
Slot, paused: Private classes
Slot, period: Private classes
Slot, phasex: Private classes
Slot, pos: Private classes
Slot, radii: Private classes
Slot, radius: Private classes
Slot, rotation: Private classes
Slot, sample: Private classes
Slot, score: Private classes
Slot, ship: Private classes
Slot, size: Private classes
Slot, super: Private classes
Slot, target: Private classes
Slot, target: Private classes
Slot, thumper: Private classes
Slot, timers: Private classes
Slot, timers: Private classes
Slot, velocity: Private classes
Special Variable, *explosion-color*: Private special variables
Special Variable, *explosion-max-radius*: Private special variables
Special Variable, *friction*: Private special variables
Special Variable, *is-thrusting*: Private special variables
Special Variable, *lr-map*: Private special variables
Special Variable, *missile-velocity*: Private special variables
Special Variable, *powerup-max-age*: Private special variables
Special Variable, *rock-sides*: Private special variables
Special Variable, *screen-height*: Private special variables
Special Variable, *screen-width*: Private special variables
Special Variable, *sound*: Private special variables
Special Variable, *thrust-factor*: Private special variables
Special Variable, *window*: Private special variables
Special Variable, *world*: Private special variables
super: Private classes

T
target: Private classes
target: Private classes
thumper: Private classes
timers: Private classes
timers: Private classes

V
velocity: Private classes


A.4 Data types

Jump to:   A   C   E   F   M   P   R   S   T   W   X  
Index Entry  Section

A
asteroids: The asteroids system
asteroids: The asteroids package
asteroids.asd: The asteroids/asteroids․asd file
asteroids.lisp: The asteroids/asteroids․lisp file

C
Class, explosion: Private classes
Class, missile: Private classes
Class, mob: Private classes
Class, mob-rot: Private classes
Class, powerup: Private classes
Class, powerup-freeze: Private classes
Class, powerup-missile: Private classes
Class, powerup-shield: Private classes
Class, rock: Private classes
Class, ship: Private classes
Class, sound: Private classes
Class, thumper: Private classes
Class, timer: Private classes
Class, world: Private classes
Class, x-ship: Private classes

E
explosion: Private classes

F
File, asteroids.asd: The asteroids/asteroids․asd file
File, asteroids.lisp: The asteroids/asteroids․lisp file
File, package.lisp: The asteroids/package․lisp file
File, sounds/banjo.mp3: The asteroids/sounds/banjo․mp3 file
File, sounds/biding.mp3: The asteroids/sounds/biding․mp3 file
File, sounds/explode1.wav: The asteroids/sounds/explode1․wav file
File, sounds/explode2.wav: The asteroids/sounds/explode2․wav file
File, sounds/explode3.wav: The asteroids/sounds/explode3․wav file
File, sounds/fire.wav: The asteroids/sounds/fire․wav file
File, sounds/haters.mp3: The asteroids/sounds/haters․mp3 file
File, sounds/life.wav: The asteroids/sounds/life․wav file
File, sounds/lsaucer.wav: The asteroids/sounds/lsaucer․wav file
File, sounds/music.mp3: The asteroids/sounds/music․mp3 file
File, sounds/phaser.wav: The asteroids/sounds/phaser․wav file
File, sounds/sfire.wav: The asteroids/sounds/sfire․wav file
File, sounds/ssaucer.wav: The asteroids/sounds/ssaucer․wav file
File, sounds/thrust.wav: The asteroids/sounds/thrust․wav file
File, sounds/thumphi.wav: The asteroids/sounds/thumphi․wav file
File, sounds/thumplo.wav: The asteroids/sounds/thumplo․wav file

M
missile: Private classes
mob: Private classes
mob-rot: Private classes

P
Package, asteroids: The asteroids package
package.lisp: The asteroids/package․lisp file
powerup: Private classes
powerup-freeze: Private classes
powerup-missile: Private classes
powerup-shield: Private classes

R
rock: Private classes

S
ship: Private classes
sound: Private classes
sounds/banjo.mp3: The asteroids/sounds/banjo․mp3 file
sounds/biding.mp3: The asteroids/sounds/biding․mp3 file
sounds/explode1.wav: The asteroids/sounds/explode1․wav file
sounds/explode2.wav: The asteroids/sounds/explode2․wav file
sounds/explode3.wav: The asteroids/sounds/explode3․wav file
sounds/fire.wav: The asteroids/sounds/fire․wav file
sounds/haters.mp3: The asteroids/sounds/haters․mp3 file
sounds/life.wav: The asteroids/sounds/life․wav file
sounds/lsaucer.wav: The asteroids/sounds/lsaucer․wav file
sounds/music.mp3: The asteroids/sounds/music․mp3 file
sounds/phaser.wav: The asteroids/sounds/phaser․wav file
sounds/sfire.wav: The asteroids/sounds/sfire․wav file
sounds/ssaucer.wav: The asteroids/sounds/ssaucer․wav file
sounds/thrust.wav: The asteroids/sounds/thrust․wav file
sounds/thumphi.wav: The asteroids/sounds/thumphi․wav file
sounds/thumplo.wav: The asteroids/sounds/thumplo․wav file
System, asteroids: The asteroids system

T
thumper: Private classes
timer: Private classes

W
world: Private classes

X
x-ship: Private classes