CTC++ Coverage Report - Execution Profile    #4/32

Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Index | No Index


File: Compressor.java
Instrumentation mode: function-decision-multicondition
TER: 100 % ( 2/ 2)

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 import java.awt.*; 
  49  
  50 public class Compressor 
  51 
  52    private ImageSprite compressorHead; 
  53    private Image compressorBody; 
  54     
  55    private GameMedia media; 
  56    private GameScreen screen; 
  57        
 
369   58    public Compressor(GameMedia media, GameScreen screen) 
  59    {    
  60       this.media = media; 
  61       this.screen = screen; 
  62        
  63       compressorHead = new ImageSprite(new Rectangle(160, -7, 321, 51), 
  64                                media.loadImage("compressor.gif")); 
  65        
  66       compressorBody = media.loadImage("compressorBody.gif"); 
  67        
  68       screen.addSprite(compressorHead); 
  69    } 
  70     
 
1037   71    public void moveDown() 
  72    {       
  73       screen.addToBackground(compressorBody, new Point(compressorHead.getSpritePosition().x+75, compressorHead.getSpritePosition().y+3)); 
  74       screen.addToBackground(compressorBody, new Point(compressorHead.getSpritePosition().x+231, compressorHead.getSpritePosition().y+3)); 
  75        
  76       compressorHead.relativeMove(new Point(0, 28)); 
  77    } 
  78 }
***TER 100% (2/2) of SOURCE FILE Compressor.java

Directory Summary | Files Summary | Functions Summary | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index