~ubuntu-branches/ubuntu/karmic/laby/karmic

« back to all changes in this revision

Viewing changes to src/state.mli

  • Committer: Bazaar Package Importer
  • Author(s): Mehdi Dogguy
  • Date: 2009-06-01 21:35:00 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090601213500-c1f7o333v0ew2c4f
Tags: 0.5.0-1
* New Upstream Version
* Remove menhir from build-dependencies: not used.
* alsa-utils is now a Recommends: used only for sound effects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
(*
 
3
 * Copyright (C) 2007-2009 The laby team
 
4
 * You have permission to copy, modify, and redistribute under the
 
5
 * terms of the GPL-3.0. For full license terms, see gpl-3.0.txt.
 
6
 *)
 
7
 
 
8
type tile = [ `Void | `Wall | `Exit | `Rock | `Web | `NRock | `NWeb ]
 
9
type dir = [ `N | `E | `S | `W ]
 
10
 
 
11
type action =
 
12
 [ `None | `Start
 
13
 | `Wall_In | `Rock_In | `Exit_In | `Web_In
 
14
 | `Web_Out
 
15
 | `Exit | `No_Exit | `Carry_Exit
 
16
 | `Rock_Take | `Rock_Drop
 
17
 | `Rock_No_Take | `Rock_No_Drop
 
18
 ]
 
19
 
 
20
type t
 
21
 
 
22
val make : tile array array -> int * int -> dir -> t
 
23
val copy : t -> t
 
24
val init : t -> t
 
25
 
 
26
val run : string -> t -> string * t
 
27
 
 
28
val iter_map : t -> (int -> int -> tile -> unit) -> unit
 
29
val pos : t -> int * int
 
30
val carry : t -> [`None | `Rock ]
 
31
val dir : t -> dir
 
32
val action : t -> action
 
33
 
 
34