Newer
Older
naledi / params.lisp
;;;;
;;;; Naledi ya Africa ("Star of Africa") is an ncurses-based survival game
;;;; set in Africa.
;;;;
;;;; This file contains all global parameters used by the game.
;;;;
;;;; (c) 2018 Daniel Vedder, MIT license
;;;;

(in-package :naledi-ya-africa)

;;Specify the logfile
(defparameter *logfile* "naledi.log")

;;Amount of detail to print in the log file
;;     0: don't write anything
;;     1: only record errors
;;     2: record basic runtime events <- default
;;     3: include more detailed information
;;     4: include debugging information, highest verbosity
;;    (5: extra level to 'park' unused debug statements on)
(defparameter *loglevel* 4)

;;Size of the world (= length of one side of a square)
(defparameter *world-size* 250)

;;Milliseconds between world updates and screen refreshes
(defparameter *framerate* 1000)

;;Localhost defaults
(defparameter *defaulthost* '("127.0.0.1" 21899)) ;default port: 21895

;;Host server address to connect to - XXX global variable!
(defparameter *host* (first *defaulthost*))

;;Network port to use - XXX global variable!
(defparameter *port* (second *defaulthost*))

;;Compass directions needed for spatial functions
(defparameter *directions* '(N NE E SE S SW W NW))