justnukeit/Player.ml

13 lines
211 B
OCaml
Raw Normal View History

2008-02-18 08:55:16 +00:00
type player_t = {
2008-02-18 08:55:16 +00:00
mutable name : string ;
mutable lifes : int ;
mutable position : Position.t;
}
let create () = {
name = "Unnamed player" ;
lifes = 3 ;
position = Position.zero ;
}