Add Map Options menu with random choosing of map/tileset. by kitutou

origin
stpohle 23 years ago
parent dd8bf60bd0
commit 691867b0e0

@ -107,7 +107,8 @@ module.source.files=\
keybinput.c\
keybinput.h\
single.c\
sysfunc.h
sysfunc.h\
mapmenu.c
module.pixmap.name=pixmaps
module.pixmap.type=

@ -18,6 +18,7 @@ bomberclone_SOURCES = \
network.c\
udp.c\
menu.c\
mapmenu.c\
field.c\
network.h\
sysfunc.c\

@ -1,6 +1,7 @@
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
# Makefile.in generated automatically by automake 1.5 from Makefile.am.
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -10,6 +11,7 @@
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL = @SHELL@
@ -31,13 +33,9 @@ infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
@ -46,24 +44,29 @@ AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
AMTAR = @AMTAR@
AWK = @AWK@
CC = @CC@
MAKEINFO = @MAKEINFO@
DEPDIR = @DEPDIR@
EXEEXT = @EXEEXT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
NO_PREFIX_PACKAGE_DATA_DIR = @NO_PREFIX_PACKAGE_DATA_DIR@
NO_PREFIX_PACKAGE_DOC_DIR = @NO_PREFIX_PACKAGE_DOC_DIR@
NO_PREFIX_PACKAGE_HELP_DIR = @NO_PREFIX_PACKAGE_HELP_DIR@
NO_PREFIX_PACKAGE_MENU_DIR = @NO_PREFIX_PACKAGE_MENU_DIR@
NO_PREFIX_PACKAGE_PIXMAPS_DIR = @NO_PREFIX_PACKAGE_PIXMAPS_DIR@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@
PACKAGE_DOC_DIR = @PACKAGE_DOC_DIR@
@ -74,259 +77,303 @@ SDL_CFLAGS = @SDL_CFLAGS@
SDL_CONFIG = @SDL_CONFIG@
SDL_LIBS = @SDL_LIBS@
VERSION = @VERSION@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
INCLUDES =
bin_PROGRAMS = bomberclone
bomberclone_SOURCES = main.c bomb.c bomberclone.h debug.c packets.c font.c gfx.c player.c packets.h game.c netmenu.c network.c udp.c menu.c field.c network.h sysfunc.c configuration.c pkgcache.c gamesrv.h gamesrv.c chat.c multiwait.c chat.h keybinput.h keybinput.c single.c
bomberclone_SOURCES = \
main.c\
bomb.c\
bomberclone.h\
debug.c\
packets.c\
font.c\
gfx.c\
player.c\
packets.h\
game.c\
netmenu.c\
network.c\
udp.c\
menu.c\
mapmenu.c\
field.c\
network.h\
sysfunc.c\
configuration.c\
pkgcache.c\
gamesrv.h\
gamesrv.c \
chat.c \
multiwait.c \
chat.h \
keybinput.h \
keybinput.c \
single.c
subdir = src
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)
bin_PROGRAMS = bomberclone$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)
am_bomberclone_OBJECTS = main.$(OBJEXT) bomb.$(OBJEXT) debug.$(OBJEXT) \
packets.$(OBJEXT) font.$(OBJEXT) gfx.$(OBJEXT) player.$(OBJEXT) \
game.$(OBJEXT) netmenu.$(OBJEXT) network.$(OBJEXT) \
udp.$(OBJEXT) menu.$(OBJEXT) mapmenu.$(OBJEXT) field.$(OBJEXT) \
sysfunc.$(OBJEXT) configuration.$(OBJEXT) pkgcache.$(OBJEXT) \
gamesrv.$(OBJEXT) chat.$(OBJEXT) multiwait.$(OBJEXT) \
keybinput.$(OBJEXT) single.$(OBJEXT)
bomberclone_OBJECTS = $(am_bomberclone_OBJECTS)
bomberclone_LDADD = $(LDADD)
bomberclone_DEPENDENCIES =
bomberclone_LDFLAGS =
DEFS = @DEFS@ -I. -I$(srcdir) -I..
DEFS = @DEFS@
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
bomberclone_OBJECTS = main.o bomb.o debug.o packets.o font.o gfx.o \
player.o game.o netmenu.o network.o udp.o menu.o field.o sysfunc.o \
configuration.o pkgcache.o gamesrv.o chat.o multiwait.o keybinput.o \
single.o
bomberclone_LDADD = $(LDADD)
bomberclone_DEPENDENCIES =
bomberclone_LDFLAGS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
depcomp = $(SHELL) $(top_srcdir)/depcomp
@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/bomb.Po $(DEPDIR)/chat.Po \
@AMDEP_TRUE@ $(DEPDIR)/configuration.Po $(DEPDIR)/debug.Po \
@AMDEP_TRUE@ $(DEPDIR)/field.Po $(DEPDIR)/font.Po \
@AMDEP_TRUE@ $(DEPDIR)/game.Po $(DEPDIR)/gamesrv.Po \
@AMDEP_TRUE@ $(DEPDIR)/gfx.Po $(DEPDIR)/keybinput.Po \
@AMDEP_TRUE@ $(DEPDIR)/main.Po $(DEPDIR)/mapmenu.Po \
@AMDEP_TRUE@ $(DEPDIR)/menu.Po $(DEPDIR)/multiwait.Po \
@AMDEP_TRUE@ $(DEPDIR)/netmenu.Po $(DEPDIR)/network.Po \
@AMDEP_TRUE@ $(DEPDIR)/packets.Po $(DEPDIR)/pkgcache.Po \
@AMDEP_TRUE@ $(DEPDIR)/player.Po $(DEPDIR)/single.Po \
@AMDEP_TRUE@ $(DEPDIR)/sysfunc.Po $(DEPDIR)/udp.Po
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = tar
GZIP_ENV = --best
DEP_FILES = .deps/bomb.P .deps/chat.P .deps/configuration.P \
.deps/debug.P .deps/field.P .deps/font.P .deps/game.P .deps/gamesrv.P \
.deps/gfx.P .deps/keybinput.P .deps/main.P .deps/menu.P \
.deps/multiwait.P .deps/netmenu.P .deps/network.P .deps/packets.P \
.deps/pkgcache.P .deps/player.P .deps/single.P .deps/sysfunc.P \
.deps/udp.P
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
CFLAGS = @CFLAGS@
DIST_SOURCES = $(bomberclone_SOURCES)
DIST_COMMON = Makefile.am Makefile.in
SOURCES = $(bomberclone_SOURCES)
OBJECTS = $(bomberclone_OBJECTS)
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-binPROGRAMS:
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
distclean-binPROGRAMS:
maintainer-clean-binPROGRAMS:
all: all-am
.SUFFIXES:
.SUFFIXES: .c .o .obj
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
; then \
f=`echo $$p1|sed '$(transform);s/$$/$(EXEEXT)/'`; \
echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$f"; \
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$f; \
else :; fi; \
done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list='$(bin_PROGRAMS)'; for p in $$list; do \
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
@list='$(bin_PROGRAMS)'; for p in $$list; do \
f=`echo $$p|sed 's/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
rm -f $(DESTDIR)$(bindir)/$$f; \
done
.s.o:
$(COMPILE) -c $<
.S.o:
$(COMPILE) -c $<
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
bomberclone$(EXEEXT): $(bomberclone_OBJECTS) $(bomberclone_DEPENDENCIES)
@rm -f bomberclone$(EXEEXT)
$(LINK) $(bomberclone_LDFLAGS) $(bomberclone_OBJECTS) $(bomberclone_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.o core *.core
clean-compile:
-rm -f *.$(OBJEXT) core *.core
distclean-compile:
-rm -f *.tab.c
maintainer-clean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/bomb.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/chat.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/configuration.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/debug.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/field.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/font.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/game.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gamesrv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/gfx.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/keybinput.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/main.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mapmenu.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/menu.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/multiwait.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/netmenu.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/network.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/packets.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/pkgcache.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/player.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/single.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/sysfunc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/udp.Po@am__quote@
bomberclone: $(bomberclone_OBJECTS) $(bomberclone_DEPENDENCIES)
@rm -f bomberclone
$(LINK) $(bomberclone_LDFLAGS) $(bomberclone_OBJECTS) $(bomberclone_LDADD) $(LIBS)
distclean-depend:
-rm -rf $(DEPDIR)
.c.o:
@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
$(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
.c.obj:
@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
$(COMPILE) -c `cygpath -w $<`
CCDEPMODE = @CCDEPMODE@
uninstall-info-am:
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
mkid -fID $$unique $(LISP)
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
mostlyclean-tags:
|| etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
clean-tags:
GTAGS:
here=`CDPATH=: && cd $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
maintainer-clean-tags:
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = src
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(top_distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -f $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
$(mkinstalldirs) "$(distdir)/$$dir"; \
fi; \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
cp -pR $$d/$$file $(distdir) \
|| exit 1; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
-include $(DEP_FILES)
mostlyclean-depend:
clean-depend:
distclean-depend:
-rm -rf .deps
maintainer-clean-depend:
%.o: %.c
@echo '$(COMPILE) -c $<'; \
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-cp .deps/$(*F).pp .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
%.lo: %.c
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am: install-binPROGRAMS
install-exec: install-exec-am
all-am: Makefile $(PROGRAMS)
install-data-am:
install-data: install-data-am
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-binPROGRAMS
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
-rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
mostlyclean-tags mostlyclean-depend mostlyclean-generic
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
mostlyclean: mostlyclean-am
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \
clean-generic mostlyclean-am
distclean: distclean-am
clean: clean-am
distclean-am: clean-am distclean-compile distclean-depend \
distclean-generic distclean-tags
distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
distclean-depend distclean-generic clean-am
dvi: dvi-am
distclean: distclean-am
dvi-am:
maintainer-clean-am: maintainer-clean-binPROGRAMS \
maintainer-clean-compile maintainer-clean-tags \
maintainer-clean-depend maintainer-clean-generic \
distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
info: info-am
info-am:
install-data-am:
install-exec-am: install-binPROGRAMS
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
distclean-depend clean-depend maintainer-clean-depend info-am info \
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
install-exec install-data-am install-data install-am install \
uninstall-am uninstall all-redirect all-am all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic
uninstall-am: uninstall-binPROGRAMS uninstall-info-am
.PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \
clean-generic distclean distclean-compile distclean-depend \
distclean-generic distclean-tags distdir dvi dvi-am info \
info-am install install-am install-binPROGRAMS install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic tags uninstall uninstall-am \
uninstall-binPROGRAMS uninstall-info-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

@ -1,4 +1,4 @@
/* $Id: bomberclone.h,v 1.15 2003/05/07 14:32:02 stpohle Exp $ */
/* $Id: bomberclone.h,v 1.16 2003/05/07 21:28:12 stpohle Exp $ */
/* bomberclone.h */
#ifndef _BOMBERCLONE_H_
@ -124,6 +124,8 @@ struct __bomberclone {
int p_nr; // Playernumber 0 if you host a game or the number of the one you are.
_field field[MAX_FIELDSIZE_X][MAX_FIELDSIZE_Y];
int random_map; // random selecting of a map
char fieldpath[512]; // path of the field file
int last_ex_nr; // number of the last explosion
@ -154,6 +156,7 @@ struct __bomberclone {
struct __menu {
int index;
char text[255];
// int type; // could be visible / disabled / grayed ?? should avoid -2 trick
} typedef _menu;
extern _bomberclone bman;
@ -230,5 +233,13 @@ extern void d_printf (char *fmt,...);
extern void single_game_new ();
extern void single_create_ai ();
extern void single_loop();
// mapmenu.c
extern void map_random ();
extern void tileset_random ();
extern void mapmenu ();
extern char* getfilename(char* path);
extern void init_map_tileset();
#endif

@ -50,6 +50,8 @@ game_init ()
bman.fieldsize.y = 17;
sprintf (bman.datapath, "data");
bman.fieldpath[0] = 0;
bman.random_map = 1;
init_map_tileset();
};
int
@ -295,45 +297,41 @@ change_res ()
void
configuration ()
{
int menuselect = 0;
char text[255];
_menu menu[] = {
{0, "Player Name:"},
{1, "Video Options"},
{2, "Sound Options"},
{3, "Customize Keyboard"},
{4, "Field File:"},
{5, "Field Size X:"},
{6, "Field Size Y:"},
{7, "Prompt For Player Name"},
{8, "Debug"},
{9, "Save Config"},
{10, "Return To Main Manu"},
{3, "Map Options"},
{4, "Customize Keyboard"},
{5, "Prompt For Player Name"},
{6, "Debug"},
{7, "Save Config"},
{8, "Return To Main Manu"},
{-1, ""}
};
while (menuselect != -1) {
sprintf (menu[0].text, "Player Name: %s", bman.playername);
if(bman.fieldpath[0])
sprintf (menu[4].text, "Field File: %s", bman.fieldpath);
else
sprintf (menu[4].text, "Field File: <not used>");
sprintf (menu[5].text, "Field Size X: %d", bman.fieldsize.x);
sprintf (menu[6].text, "Field Size Y: %d", bman.fieldsize.y);
if (debug == 1)
sprintf (menu[8].text, "Debug Messages ON");
if (bman.askplayername == 1)
sprintf (menu[5].text, "Prompt For Name: YES");
else
sprintf (menu[8].text, "Debug Messages OFF");
sprintf (menu[5].text, "Prompt For Name: NO");
if (bman.askplayername == 1)
sprintf (menu[7].text, "Prompt For Name: Yes");
if (debug == 1)
sprintf (menu[6].text, "Debug Messages ON");
else
sprintf (menu[7].text, "Prompt For Name: No");
sprintf (menu[6].text, "Debug Messages OFF");
menuselect = menu_loop ("Configuration", menu, menuselect);
@ -343,45 +341,29 @@ configuration ()
menu_get_text ("Enter Playername", bman.playername, LEN_PLAYERNAME - 1);
bman.playername[LEN_PLAYERNAME - 1] = 0;
break;
case (1): // Screen Options
change_res ();
break;
case (2): // Sound Options
case (3): // Customize Keyboard
break;
case (4): // Field File
menu_get_text ("Enter the path of a field file", bman.fieldpath, 30);
bman.fieldpath[511] = 0;
break;
case (5): // Change X Fieldsize
sprintf (menu[5].text, "%d", bman.fieldsize.x);
sprintf (text, "Field Size X (%d - %d)", MIN_FIELDSIZE_X, MAX_FIELDSIZE_X);
menu_get_text (text, menu[5].text, 3);
bman.fieldsize.x = atoi (menu[5].text) | 1;
if (bman.fieldsize.x < MIN_FIELDSIZE_X)
bman.fieldsize.x = MIN_FIELDSIZE_X;
if (bman.fieldsize.x > MAX_FIELDSIZE_X)
bman.fieldsize.x = MAX_FIELDSIZE_X;
break;
case (3): // Map Options
mapmenu();
break;
case (6): // Change Y Fieldsize
sprintf (menu[6].text, "%d", bman.fieldsize.y);
sprintf (text, "Field Size Y (%d - %d)", MIN_FIELDSIZE_Y, MAX_FIELDSIZE_Y);
menu_get_text (text, menu[6].text, 3);
bman.fieldsize.y = atoi (menu[6].text) | 1;
if (bman.fieldsize.y < MIN_FIELDSIZE_Y)
bman.fieldsize.y = MIN_FIELDSIZE_Y;
if (bman.fieldsize.y > MAX_FIELDSIZE_Y)
bman.fieldsize.y = MAX_FIELDSIZE_Y;
case (4): // Customize Keyboard
break;
case (7): // Debugging On / Off
case (5): // Prompt For Player Name
if (bman.askplayername == 1)
bman.askplayername = 0;
else
bman.askplayername = 1;
break;
case (8): // Debugging On / Off
case (6): // Debugging On / Off
if (debug == 1)
debug = 0;
else {
@ -389,10 +371,12 @@ configuration ()
d_printf ("BomberClone ver.%s\n", VERSION);
}
break;
case (9): // Save Configuration
case (7): // Save Configuration
WriteConfig ();
break;
case (10): // Return to main menu
case (8): // Return to main menu
menuselect = -1;
break;
}

@ -1,4 +1,4 @@
/* $Id: field.c,v 1.13 2003/05/07 00:21:05 stpohle Exp $ */
/* $Id: field.c,v 1.14 2003/05/07 21:28:12 stpohle Exp $ */
/* field.c - procedures which are needed to control the field */
#include <stdlib.h>
@ -269,12 +269,20 @@ field_new (char *filename)
FILE *fmap;
float fkt;
int nb_try;
fmap = fopen (filename, "r");
/* if we can't open the given filename for any reason, reverting
to default value else, load the file */
if (fmap)
field_load (fmap);
if(filename)
{
fmap = fopen (filename, "r");
/* if we can't open the given filename for any reason, reverting
to default value else, load the file */
if (fmap)
field_load (fmap);
}
else
{
fmap = NULL;
}
/* this is the item factor we multiply it with this so we know
how much items we want in the game */
@ -373,30 +381,4 @@ field_new (char *filename)
}
}
/* load a random tileset */
void
tileset_random () {
_direntry *destart, *de, *desel;
char path[LEN_PATHFILENAME];
int max, sel;
sprintf (path, "%s/tileset", bman.datapath);
desel = destart = s_getdir (path);
for (max = 0, de = destart; de != NULL; de = de->next)
if (de->name[0] != '.' && (de->flags & DF_dir) == DF_dir)
max++;
sel = s_random (max);
for (max = 0, de = destart; max <= sel && de != NULL; de = de->next)
if (de->name[0] != '.' && (de->flags & DF_dir) == DF_dir) {
desel = de;
max++;
}
d_printf ("Random Tileset %s (%d)\n", desel->name, sel, max);
if (desel != NULL)
strncpy (gfx.tileset, desel->name, LEN_TILESETNAME);
gfx.tileset[LEN_TILESETNAME-1] = 0;
}

@ -1,4 +1,4 @@
/* $Id: menu.c,v 1.15 2003/05/07 20:19:19 stpohle Exp $ */
/* $Id: menu.c,v 1.16 2003/05/07 21:28:12 stpohle Exp $ */
/* menu's for the game */
#include <SDL.h>
@ -276,7 +276,7 @@ menu_get_text (char *title, char *text, int len)
if (event.type == SDL_KEYUP)
keypressed = 0;
s_delay (25);
s_delay (100);
}
};
@ -352,7 +352,7 @@ menu_displaymessage (char *title, char *text)
if (event.type == SDL_KEYUP)
keypressed = 0;
s_delay (25);
s_delay (100);
}
};
@ -375,7 +375,8 @@ int menu_dir_draw (char *title, _direntry *dirstart, int start, int selected) {
if (maxlen < strlen (de->name))
maxlen = strlen (de->name);
maxlen = strlen (title);
if (maxlen < strlen (title))
maxlen = strlen (title);
if (maxlen * gfx.font.size.x > gfx.res.x - 32)
maxlen = (gfx.res.x - 40) /gfx.font.size.x;
@ -411,13 +412,13 @@ char *menu_dir_select (char *title, char *path, signed char dirflags) {
return NULL;
while (done == 0 || (done == 1 && keypressed == 1)) {
/* do the network loop if we have to */
if (oldsel != sel) {
if (sel != oldsel) {
listend = menu_dir_draw (title, destart, liststart, sel);
SDL_Flip (gfx.screen);
oldsel = sel;
}
/* do the network loop if we have to */
if (bman.gametype == GT_multi && bman.sock != -1)
network_loop ();
@ -468,7 +469,7 @@ char *menu_dir_select (char *title, char *path, signed char dirflags) {
if (!keys[SDLK_RETURN] && event.type == SDL_KEYUP)
keypressed = 0;
s_delay (25);
s_delay (100);
}
for (max = 0, de = destart; max != sel && de != NULL; de = de->next)

@ -189,9 +189,7 @@ host_multiplayer_game ()
if (bman.p_nr != -1) {
bman.state = GS_update;
net_new_game ();
field_new (bman.fieldpath);
if (gfx.random_tileset)
tileset_random ();
init_map_tileset();
net_send_servermode ();
gfx_game_init ();
net_new_gamedata ();

@ -1,4 +1,4 @@
/* $Id: network.c,v 1.14 2003/05/06 17:47:13 stpohle Exp $ */
/* $Id: network.c,v 1.15 2003/05/07 21:28:12 stpohle Exp $ */
/*
network routines.
*/

@ -1,4 +1,4 @@
/* $Id: single.c,v 1.8 2003/05/07 14:30:41 stpohle Exp $ */
/* $Id: single.c,v 1.9 2003/05/07 21:28:13 stpohle Exp $ */
/* single player */
#include "basic.h"
@ -9,8 +9,6 @@ single_game_new (int ai_players)
{
int p,
i;
char *tileset;
char pathname [LEN_PATHFILENAME];
// set players on field 1,1
for (p = 0; p < MAX_PLAYERS; p++) {
@ -39,14 +37,7 @@ single_game_new (int ai_players)
player_set_gfx (&bman.players[bman.p_nr], 0);
bman.last_ex_nr = 1;
field_new (bman.fieldpath);
sprintf (pathname , "%s/tileset", bman.datapath);
tileset = menu_dir_select ("Select Tileset", pathname, DF_dir);
if (tileset == NULL)
tileset_random ();
else
strncpy (gfx.tileset, tileset, LEN_TILESETNAME);
init_map_tileset();
bman.players_nr_s = 1;
bman.players_nr = 1;

@ -1,4 +1,4 @@
/* $Id: sysfunc.h,v 1.3 2003/05/07 00:21:38 stpohle Exp $ */
/* $Id: sysfunc.h,v 1.4 2003/05/07 21:28:13 stpohle Exp $ */
/* include some system near functions */
#ifndef _SYSFUNC_H_

@ -1,4 +1,4 @@
/* $Id: udp.c,v 1.5 2003/05/06 22:33:40 ob1kenewb Exp $ */
/* $Id: udp.c,v 1.6 2003/05/07 21:28:13 stpohle Exp $ */
/* udp.c code for the network
File Version 0.2
*/

Loading…
Cancel
Save