X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_mobs.lisp;h=62e6e6cf2668a68866831b030226c28a553c47c5;hb=eede4e38936f10c03f4a66427ccb885142cf4237;hp=79a8be2b98e1a3340ea2722254e0fd143e550249;hpb=edd70b0d0e5f54a346fcf6850ab6e10335ac6751;p=gacela.git diff --git a/gacela_mobs.lisp b/gacela_mobs.lisp index 79a8be2..62e6e6c 100755 --- a/gacela_mobs.lisp +++ b/gacela_mobs.lisp @@ -17,10 +17,15 @@ ;;; World of Mob -(in-package :gacela) +;(in-package :gacela) (defmacro makemob (name variables &rest methods) - `(lambda , + `(let ,variables + (defun ,name (&rest args &aux (option (car args))) + ,(mob-options methods)))) + +(defun mob-options (methods) + ) (defmacro defmob (name variables &key init logic render) `(let ((make-name ',(intern (concatenate 'string "MAKE-" (string name)))))