+++ /dev/null
-.deps config.* stamp-h* xor
-configure aclocal.m4
-Makefile Makefile.in
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.1 2003/12/12 10:55:30 mdw Exp $
+## $Id$
##
## Makefile
##
## along with XOR; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.1 2003/12/12 10:55:30 mdw
-## Initial checkin. Not there yet.
-##
-
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = xor
/* -*-c-*-
*
- * $Id: acconfig.h,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Configuration header for XOR
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: acconfig.h,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
#ifndef ACCONFIG_H
#define ACCONFIG_H
/* -*-c-*-
*
- * $Id: cell.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Cell attributes and behaviour
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: cell.c,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "xor.h"
/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* -*-c-*-
*
- * $Id: config.h,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Configuration header for XOR
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: config.h,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
#ifndef ACCONFIG_H
#define ACCONFIG_H
dnl -*-fundamental-*-
dnl
-dnl $Id: configure.in,v 1.1 2003/12/12 10:55:30 mdw Exp $
+dnl $Id$
dnl
dnl Configuration script
dnl
dnl along with XOR; if not, write to the Free Software Foundation,
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-dnl ----- Revision history --------------------------------------------------
-dnl
-dnl $Log: configure.in,v $
-dnl Revision 1.1 2003/12/12 10:55:30 mdw
-dnl Initial checkin. Not there yet.
-dnl
-
AC_INIT(xor.c)
AM_INIT_AUTOMAKE(xor, 1.0.0)
AM_CONFIG_HEADER(config.h)
/* -*-c-*-
*
- * $Id: game.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Main game logic
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: game.c,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "xor.h"
g->ptail = p->prev;
p->prev = 0;
g->p = p;
- g->l->v++;
CELLSET(g->l, g->p->x, g->p->y, C_PLAYER);
ui_switch(g->p->u);
}
;
if (!p) return (0);
if (g->l->v >= g->l->vtot) return (1);
+ g->l->v++;
undo_switch(g);
game_switchto(g, p);
return (1);
/* -*-c-*-
*
- * $Id: level.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Level I/O and handling
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: level.c,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "xor.h"
/* -*-c-*-
*
- * $Id: ui-curses.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Curses user interface
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: ui-curses.c,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "xor.h"
/* -*-c-*-
*
- * $Id: undo.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Management of undo records
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: undo.c,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "xor.h"
a->u.c.y = g->p->y;
g->p->x = x;
g->p->y = y;
+ ui_track(g->p->u, x, y);
break;
case A_LIVE:
a->u.p->f |= PF_DEAD;
/* -*-c-*-
*
- * $Id: xor.c,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Main program
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: xor.c,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "xor.h"
/* -*-c-*-
*
- * $Id: xor.h,v 1.1 2003/12/12 10:55:30 mdw Exp $
+ * $Id$
*
* Main header for XOR
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: xor.h,v $
- * Revision 1.1 2003/12/12 10:55:30 mdw
- * Initial checkin. Not there yet.
- *
- */
-
#ifndef XOR_H
#define XOR_H