Changeset 148
- Timestamp:
- 06/01/07 14:19:25 (1 year ago)
- Files:
-
- trunk/src/cmd4.c (modified) (3 diffs)
- trunk/src/main-crb.c (modified) (2 diffs)
- trunk/src/main-gtk.c (modified) (1 diff)
- trunk/src/main-ros.c (modified) (2 diffs)
- trunk/src/main-sdl.c (modified) (3 diffs)
- trunk/src/pathfind.c (modified) (1 diff)
- trunk/src/randname.h (modified) (1 diff)
- trunk/src/ui.c (modified) (1 diff)
- trunk/src/z-file.c (modified) (2 diffs)
- trunk/src/z-form.c (modified) (1 diff)
- trunk/src/z-util.c (modified) (1 diff)
- trunk/src/z-virt.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cmd4.c
r135 r148 1 1 /* 2 * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke 2 * File: cmd4.c 3 * Purpose: Various kinds of browsing functions. 3 4 * 4 * This software may be copied and distributed for educational, research, 5 * and not for profit purposes provided that this copyright and statement 6 * are included in all such copies. Other copyrights may also apply. 5 * Copyright (c) 1997-2007 Robert A. Koeneke, James E. Wilson, Ben Harrison, 6 * Eytan Zweig, Andrew Doull, Pete Mack. 7 7 * 8 * UnAngband (c) 2001-6 Andrew Doull. Modifications to the Angband 2.9.1 9 * source code are released under the Gnu Public License. See www.fsf.org 10 * for current GPL license details. Addition permission granted to 11 * incorporate modifications in all Angband variants as defined in the 12 * Angband variants FAQ. See rec.games.roguelike.angband for FAQ. 8 * This work is free software; you can redistribute it and/or modify it 9 * under the terms of either: 13 10 * 14 */ 15 16 /* 17 * Code cleanup -- Pete Mack 02/2007 (No copyright) 11 * a) the GNU General Public License as published by the Free Software 12 * Foundation, version 2, or 13 * 14 * b) the "Angband licence": 15 * This software may be copied and distributed for educational, research, 16 * and not for profit purposes provided that this copyright and statement 17 * are included in all such copies. Other copyrights may also apply. 18 */ 19 #include "angband.h" 20 #include "ui.h" 21 22 23 /* 24 * Code cleanup -- Pete Mack 02/2007 18 25 * Use proper function tables and database methodology. 19 26 * Tables are now tables, not multiline conditionals. … … 21 28 * Function tables are used for iteration where reasonable. (C-style class model) 22 29 */ 23 24 #include "angband.h"25 #include "ui.h"26 30 27 31 … … 4048 4052 message_flush(); 4049 4053 } 4054 4050 4055 /* 4051 4056 * Hack -- save a screen dump to a file trunk/src/main-crb.c
r141 r148 1 2 1 /* 3 2 * Copyright (c) 1997-2006 Ben Harrison, Keith Randall, Peter Ammon, … … 31 30 * Carbon code adapted from works by Peter Ammon and Ron Anderson. 32 31 * Much modernization and graphics/sound improvement done by pelpel. 32 * 33 * 34 * Graphics code originally adapted from an extremely minimal subset of 35 * "Sprite World II" <http://www.spriteworld.org/>, which is under the 36 * following licence: 37 * 38 * This software is provided 'as-is', without any express or implied 39 * warranty. In no event will the authors be held liable for any damages 40 * arising from the use of this software. 41 * 42 * Permission is granted to anyone to use this software for any purpose, 43 * including commercial applications, and to alter it and redistribute it 44 * freely, subject to the following restrictions: 45 * 46 * 1. The origin of this software must not be misrepresented; you must not 47 * claim that you wrote the original software. If you use this software 48 * in a product, an acknowledgment in the product documentation would be 49 * appreciated but is not required. 50 * 51 * 2. Altered source versions must be plainly marked as such, and must not be 52 * misrepresented as being the original software. 53 * 54 * 3. This notice may not be removed or altered from any source 55 * distribution. 56 * (end of licence) 57 * 33 58 * 34 59 * Notes: trunk/src/main-gtk.c
r53 r148 1 /* File: main-gtk.c */ 2 3 /* 4 * Copyright (c) 2000 Robert Ruehlmann 1 /* 2 * File: main-gtk.c 3 * Purpose: Angband GTK2 port 5 4 * 6 * This software may be copied and distributed for educational, research, 7 * and not for profit purposes provided that this copyright and statement 8 * are included in all such copies. 9 */ 10 5 * Copyright (c) 2000-2007 Robert Ruehlmann, Andrew Sidwell, Shanonah Alkire 6 * 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 17 */ 11 18 #include "angband.h" 12 19 trunk/src/main-ros.c
r141 r148 1 1 /* 2 2 * File: main-ros.c 3 * Purpose: Support for RISC OS versions of Angband 3 4 * 4 * Abstract: Support for RISC OS versions of Angband, including support5 * for multitasking and dynamic areas.5 * Copyright (c) 2000-2007 Musus Umbra, Antony Sidwell, Thomas Harris, 6 * Andrew Sidwell, Ben Harrison. 6 7 * 7 * Authors: Musus Umbra, Antony Sidwell, Thomas Harris, Andrew Sidwell,8 * Ben Harrison, and others.8 * This work is free software; you can redistribute it and/or modify it 9 * under the terms of either: 9 10 * 10 * Licences: Angband licence, GNU GPL version 2 11 * a) the GNU General Public License as published by the Free Software 12 * Foundation, version 2, or 11 13 * 14 * b) the "Angband licence": 15 * This software may be copied and distributed for educational, research, 16 * and not for profit purposes provided that this copyright and statement 17 * are included in all such copies. Other copyrights may also apply. 18 */ 19 20 #ifdef __riscos 21 22 #include "angband.h" 23 24 /* 25 * Purpose: Support for RISC OS Angband 2.9.x onwards (and variants) 12 26 * Current maintainer: Antony Sidwell <antony@isparp.co.uk> (ajps) 13 */14 15 #ifdef __riscos16 17 #include "angband.h"18 19 /*20 * Purpose: Support for RISC OS Angband 2.9.x onwards (and variants)21 27 * 22 28 * NB: This code is still under continuous development - if you want to use … … 630 636 #define SYSTEM_FONT (&(fonts[0])) 631 637 632 /* Term system variables */638 /* Term system variables */ 633 639 static term_data data[MAX_TERM_DATA]; /* One per term */ 634 640 trunk/src/main-sdl.c
r127 r148 1 /* File: main-sdl.c */ 2 3 /* 4 * Angband SDL port (c) 2007 Iain McFall (mcfall.iain@googlemail.com) 5 * 6 * Based on the sangband SDL port, by Leon Marrick & others. 1 /* 2 * File: main-sdl.c 3 * Purpose: Angband SDL port 7 4 * 5 * Copyright (c) 2007 Ben Harrison, Gregory Velichansky, Eric Stevens, 6 * Leon Marrick, Iain McFall, and others 8 7 * 8 * This work is free software; you can redistribute it and/or modify it 9 * under the terms of either: 10 * 11 * a) the GNU General Public License as published by the Free Software 12 * Foundation, version 2, or 13 * 14 * b) the "Angband licence": 15 * This software may be copied and distributed for educational, research, 16 * and not for profit purposes provided that this copyright and statement 17 * are included in all such copies. Other copyrights may also apply. 18 */ 19 #include "angband.h" 20 21 /* 9 22 * Comments and suggestions are welcome. The UI probably needs some 10 23 * adjustment, and I need comments from you. … … 13 26 for credits" or something 14 27 */ 15 16 17 /*18 * This program is free software; you can redistribute it and/or modify it19 * under the terms of the GNU General Public License. Parts may also be20 * available under the terms of the Moria license. For more details, see21 * "/docs/copying.txt".22 */23 24 28 25 29 /* … … 102 106 * Windows machines. 103 107 */ 104 #include "angband.h"105 108 106 109 #ifdef USE_SDL trunk/src/pathfind.c
r69 r148 2 2 * File: pathfind.c 3 3 * Purpose: Pathfinding algorithm 4 * Author: Chris Cavalaria 4 * 5 * Copyright (c) 2004 Christophe Cavalaria 6 * 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 5 17 */ 18 #include "angband.h" 6 19 7 #include "angband.h"8 20 9 21 /*** Constants ***/ 10 22 11 /* Maximum size around the player to consider in the pathfinde */23 /* Maximum size around the player to consider in the pathfinder */ 12 24 #define MAX_PF_RADIUS 50 13 25 trunk/src/randname.h
r42 r148 1 1 /* 2 * randname.h - random name generation3 * Copyright (c) 2007 Antony Sidwell (antony@isparp.co.uk) and others,4 * W. Sheldon Simms name generator originally in randart.c2 * File: randname.h 3 * Purpose: Random name generation 4 * Based on W. Sheldon Simms name generator originally in randart.c 5 5 * 6 * This file is distributed under the terms of both the Angband licence and 7 * under the GPL licence (version 2 or any later version). It may be 8 * redistributed under the terms of either licence. 6 * Copyright (c) 2007 Antony Sidwell and others 7 * 8 * This work is free software; you can redistribute it and/or modify it 9 * under the terms of either: 10 * 11 * a) the GNU General Public License as published by the Free Software 12 * Foundation, version 2, or 13 * 14 * b) the "Angband licence": 15 * This software may be copied and distributed for educational, research, 16 * and not for profit purposes provided that this copyright and statement 17 * are included in all such copies. Other copyrights may also apply. 9 18 */ 10 19 trunk/src/ui.c
r134 r148 1 /* File ui.c */2 3 1 /* 4 * Copyright (c) 2007 Pete Mack and others 5 * This code released under the Gnu Public License. See www.fsf.org 6 * for current GPL license details. Addition permission granted to 7 * incorporate modifications in all Angband variants as defined in the 8 * Angband variants FAQ. See rec.games.roguelike.angband for FAQ. 2 * File: ui.c 3 * Purpose: Generic menu interaction functions 4 * 5 * Copyright (c) 2007 Pete Mack and others. 6 * 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 9 17 */ 18 #include "angband.h" 19 10 20 11 21 /* 12 Description: 13 Implementation of Extremely Basic Event Model. 14 Limits: 15 all events are of the concrete type event_type (see z-util.h), 16 which are supposed to model simple UI actions: 17 - < escape > 18 - keystroke 19 - mousepress 20 - select menu element 21 - move menu cursor 22 - back to parent (hierarchical menu escape) 23 24 There are 3 basic event-related classes: 25 The event_type. 26 Concrete event, with at most 32 distinct types. 27 28 The event_listener observer for key events 29 30 The event_target The registrar for event_listeners. 31 For convenience, the event target is also an event_listener. 32 33 34 */ 35 36 #include "angband.h" 22 * Implementation of Extremely Basic Event Model. 23 * Limits: 24 * all events are of the concrete type event_type (see z-util.h), 25 * which are supposed to model simple UI actions: 26 * - < escape > 27 * - keystroke 28 * - mousepress 29 * - select menu element 30 * - move menu cursor 31 * - back to parent (hierarchical menu escape) 32 * 33 * There are 3 basic event-related classes: 34 * The event_type. 35 * Concrete event, with at most 32 distinct types. 36 * 37 * The event_listener observer for key events 38 * 39 * The event_target The registrar for event_listeners. 40 * For convenience, the event target is also an event_listener. 41 */ 37 42 38 43 /* Some useful constants */ 39 40 44 const char default_choice[] = 41 45 "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; trunk/src/z-file.c
r136 r148 1 1 /* 2 2 * File: z-file.c 3 * Purpose: General purpose file handling. 4 * 5 * 6 * 3 * Purpose: Low-level file (and directory) handling 4 * 5 * Copyright (c) 1997-2007 Ben Harrison, pelpel, Andrew Sidwell 6 * 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 17 */ 18 #include "angband.h" 19 #include "z-file.h" 20 21 22 /* 7 23 * The concept of the file routines is that all file handling should be done 8 24 * using as few routines as possible, since every machine is slightly … … 30 46 * not be defined. 31 47 */ 32 #include "angband.h"33 #include "z-file.h"34 48 35 49 #ifndef RISCOS trunk/src/z-form.c
r110 r148 1 /* File: z-form.c */ 2 3 /* 1 /* 2 * File: z-form.c 3 * Purpose: Low-level text formatting (snprintf() replacement) 4 * 4 5 * Copyright (c) 1997 Ben Harrison 5 6 * 6 * This software may be copied and distributed for educational, research, 7 * and not for profit purposes provided that this copyright and statement 8 * are included in all such copies. 9 */ 10 11 /* Purpose: Low level text formatting -BEN- */ 12 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 17 */ 13 18 #include "z-form.h" 14 19 #include "z-type.h" trunk/src/z-util.c
r1 r148 1 /* File: z-util.c */ 2 3 /* 4 * Copyright (c) 1997 Ben Harrison 5 * 6 * This software may be copied and distributed for educational, research, 7 * and not for profit purposes provided that this copyright and statement 8 * are included in all such copies. 9 */ 10 11 /* Purpose: Low level utilities -BEN- */ 12 1 /* 2 * File: z-util.c 3 * Purpose: Low-level string handling and other utilities. 4 * 5 * Copyright (c) 1997-2005 Ben Harrison, Robert Ruehlmann. 6 * 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 17 */ 13 18 #include "z-util.h" 14 19 trunk/src/z-virt.c
r1 r148 1 /* File: z-virt.c */ 1 /* 2 * File: z-virt.c 3 * Purpose: Memory management routines 4 * 5 * Copyright (c) 1997 Ben Harrison. 6 * 7 * This work is free software; you can redistribute it and/or modify it 8 * under the terms of either: 9 * 10 * a) the GNU General Public License as published by the Free Software 11 * Foundation, version 2, or 12 * 13 * b) the "Angband licence": 14 * This software may be copied and distributed for educational, research, 15 * and not for profit purposes provided that this copyright and statement 16 * are included in all such copies. Other copyrights may also apply. 17 */ 18 #include "z-virt.h" 19 #include "z-util.h" 2 20 3 /*4 * Copyright (c) 1997 Ben Harrison5 *6 * This software may be copied and distributed for educational, research,7 * and not for profit purposes provided that this copyright and statement8 * are included in all such copies.9 */10 11 /* Purpose: Memory management routines -BEN- */12 13 #include "z-virt.h"14 15 #include "z-util.h"16 21 17 22
