| Start/ | End/ | |||
| True | False | - | Line | Source |
| 1 | /* | |||
| 2 | * [[ Frozen-Bubble ]] | |||
| 3 | * | |||
| 4 | * Copyright (c) 2000-2003 Guillaume Cottenceau. | |||
| 5 | * Java sourcecode - Copyright (c) 2003 Glenn Sanson. | |||
| 6 | * | |||
| 7 | * This code is distributed under the GNU General Public License | |||
| 8 | * | |||
| 9 | * This program is free software; you can redistribute it and/or | |||
| 10 | * modify it under the terms of the GNU General Public License | |||
| 11 | * version 2, as published by the Free Software Foundation. | |||
| 12 | * | |||
| 13 | * This program is distributed in the hope that it will be useful, but | |||
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
| 16 | * General Public License for more details. | |||
| 17 | * | |||
| 18 | * You should have received a copy of the GNU General Public License along | |||
| 19 | * with this program; if not, write to the Free Software Foundation, Inc., | |||
| 20 | * 675 Mass Ave, Cambridge, MA 02139, USA. | |||
| 21 | * | |||
| 22 | * | |||
| 23 | * Artwork: | |||
| 24 | * Alexis Younes <73lab at free.fr> | |||
| 25 | * (everything but the bubbles) | |||
| 26 | * Amaury Amblard-Ladurantie <amaury at linuxfr.org> | |||
| 27 | * (the bubbles) | |||
| 28 | * | |||
| 29 | * Soundtrack: | |||
| 30 | * Matthias Le Bidan <matthias.le_bidan at caramail.com> | |||
| 31 | * (the three musics and all the sound effects) | |||
| 32 | * | |||
| 33 | * Design & Programming: | |||
| 34 | * Guillaume Cottenceau <guillaume.cottenceau at free.fr> | |||
| 35 | * (design and manage the project, whole Perl sourcecode) | |||
| 36 | * | |||
| 37 | * Java version: | |||
| 38 | * Glenn Sanson <glenn.sanson at free.fr> | |||
| 39 | * (whole Java sourcecode, including JIGA classes | |||
| 40 | * http://glenn.sanson.free.fr/jiga/) | |||
| 41 | * | |||
| 42 | * [[ http://glenn.sanson.free.fr/fb/ ]] | |||
| 43 | * [[ http://www.frozen-bubble.org/ ]] | |||
| 44 | */ | |||
| 45 | ||||
| 46 | import net.library.jiga.*; | |||
| 47 | ||||
| 48 | public class BubbleFont extends GameFont | |||
| 49 | { | |||
| 50 | private final char[] BUBBLE_CHARACTERS = {'!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', | |||
| 51 | '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', | |||
| 52 | '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', | |||
| 53 | '?', '@', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', | |||
| 54 | 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', | |||
| 55 | 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '|', '{', | |||
| 56 | '}', '[', ']', '£', '\\', 'µ', '§'}; | |||
| 57 | ||||
| 58 | private final int[] BUBBLE_POSITION = {0, 9, 16, 31, 39, 54, 69, 73, 80, 88, 96, 116, 121, 131, | |||
| 59 | 137, 154, 165, 175, 187, 198, 210, 223, 234, 246, 259, | |||
| 60 | 271, 276, 282, 293, 313, 324, 336, 351, 360, 370, 381, | |||
| 61 | 390, 402, 411, 421, 435, 446, 459, 472, 483, 495, 508, | |||
| 62 | 517, 527, 538, 552, 565, 578, 589, 602, 616, 631, 645, | |||
| 63 | 663, 684, 700, 716, 732, 748, 764, 780, 796}; | |||
| 64 | ||||
| 80 | 0 | 65 | public BubbleFont(GameApplet applet) | |
| 66 | { | |||
| 67 | super(applet.getGameMedia().loadImage("bubbleFont.gif"), applet); | |||
| 68 | setCharMap(BUBBLE_CHARACTERS, BUBBLE_POSITION); | |||
| 69 | } | |||
| 70 | } | |||
| ***TER 100% (1/1) of SOURCE FILE BubbleFont.java | ||||