git.shiar.nl
/
netris.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netris version 0.5
[netris.git]
/
shapes.c
diff --git
a/shapes.c
b/shapes.c
index c62f69b2d827af4e45df5c0f0d381293fc41f1ce..5ae8ac920da50518dc7b753091b6a51e50be96d0 100644
(file)
--- a/
shapes.c
+++ b/
shapes.c
@@
-1,6
+1,6
@@
/*
* Netris -- A free networked version of T*tris
/*
* Netris -- A free networked version of T*tris
- * Copyright (C) 1994
,1995,1996
Mark H. Weaver <mhw@netris.org>
+ * Copyright (C) 1994
-1996,1999
Mark H. Weaver <mhw@netris.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-16,7
+16,7
@@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: shapes.c,v 1.1
5 1996/02/09 08:22:17
mhw Exp $
+ * $Id: shapes.c,v 1.1
6 1999/05/16 06:56:31
mhw Exp $
*/
#include "netris.h"
*/
#include "netris.h"
@@
-46,26
+46,26
@@
static Cmd cmds_long[] = { C_back, C_plot, C_forw, C_plot, C_forw, C_plot,
C_forw, C_plot, C_end };
static Cmd cmds_long[] = { C_back, C_plot, C_forw, C_plot, C_forw, C_plot,
C_forw, C_plot, C_end };
-TwoWayDecl(long, long, 0, BT_
piece1
);
+TwoWayDecl(long, long, 0, BT_
blue
);
static Cmd cmds_square[] = { C_plot, C_forw, C_left, C_plot, C_forw, C_left,
C_plot, C_forw, C_left, C_plot, C_end };
static Cmd cmds_square[] = { C_plot, C_forw, C_left, C_plot, C_forw, C_left,
C_plot, C_forw, C_left, C_plot, C_end };
-static Shape shape_square = { &shape_square, 0, 0, D_up, 0, BT_
piece1
,
+static Shape shape_square = { &shape_square, 0, 0, D_up, 0, BT_
magenta
,
cmds_square };
static Cmd cmds_l[] = { C_right, C_back, C_plot, C_forw, C_plot, C_forw,
C_plot, C_left, C_forw, C_plot, C_end };
cmds_square };
static Cmd cmds_l[] = { C_right, C_back, C_plot, C_forw, C_plot, C_forw,
C_plot, C_left, C_forw, C_plot, C_end };
-FourWayDecl(l, l, 0, BT_
piece1
);
-FourWayDecl(l1, l, 1, BT_
piece1
);
+FourWayDecl(l, l, 0, BT_
cyan
);
+FourWayDecl(l1, l, 1, BT_
yellow
);
static Cmd cmds_t[] = { C_plot, C_forw, C_plot, C_back, C_right, C_forw,
C_plot, C_back, C_back, C_plot, C_end };
static Cmd cmds_t[] = { C_plot, C_forw, C_plot, C_back, C_right, C_forw,
C_plot, C_back, C_back, C_plot, C_end };
-FourWayDecl(t, t, 0, BT_
piece1
);
+FourWayDecl(t, t, 0, BT_
white
);
static Cmd cmds_s[] = { C_back, C_plot, C_forw, C_plot, C_left, C_forw,
C_plot, C_right, C_forw, C_plot, C_end };
static Cmd cmds_s[] = { C_back, C_plot, C_forw, C_plot, C_left, C_forw,
C_plot, C_right, C_forw, C_plot, C_end };
-TwoWayDecl(s, s, 0, BT_
piece1
);
-TwoWayDecl(s1, s, 1, BT_
piece1
);
+TwoWayDecl(s, s, 0, BT_
green
);
+TwoWayDecl(s1, s, 1, BT_
red
);
ShapeOption stdOptions[] = {
{1, &shape_long_horiz},
ShapeOption stdOptions[] = {
{1, &shape_long_horiz},