text
stringlengths
3
1.18M
package org.poly2tri.examples.ardor3d; import java.io.IOException; import java.util.ArrayList; import org.poly2tri.Poly2Tri; import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase; import org.poly2tri.examples.ardor3d.misc.DataLoader; import org.poly2tri.examples.ardor3d.misc.ExampleSets; import org....
/** * Copyright (c) 2008-2009 Ardor Labs, Inc. * * This file is part of Ardor3D. * * Ardor3D is free software: you can redistribute it and/or modify it * under the terms of its license which may be found in the accompanying * LICENSE file or at <http://www.ardor3d.com/LICENSE>. */ package org.poly2tri.example...
package org.poly2tri.examples.ardor3d.misc; public enum ExampleModels { Test ("test.dat",1,0,0,true), Two ("2.dat",1,0,0,true), Debug ("debug.dat",1,0,0,false), Debug2 ("debug2.dat",1,0,0,false), Bird ("bird.dat",1,0,0,false), Custom...
package org.poly2tri.examples.ardor3d.misc; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Str...
package org.poly2tri.examples.ardor3d.misc; public enum ExampleSets { Example1 ("example1.dat",1,0,0,true), Example2 ("example2.dat",1,0,0,true), Example3 ("example3.dat",1,0,0,false), Example4 ("example4.dat",1,0,0,false); private final static String m_bas...
package org.poly2tri.examples.ardor3d.misc; import org.poly2tri.triangulation.point.TPoint; public class MyPoint extends TPoint { int index; public MyPoint( double x, double y ) { super( x, y ); } public void setIndex(int i) { index = i; } ...
package org.poly2tri.examples.ardor3d.misc; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Str...
package org.poly2tri.examples.ardor3d; import java.util.ArrayList; import org.poly2tri.Poly2Tri; import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase; import org.poly2tri.geometry.polygon.Polygon; import org.poly2tri.geometry.polygon.PolygonPoint; import org.poly2tri.triangulation.point.TPoint; imp...
package org.poly2tri.examples.ardor3d.base; import java.net.URISyntaxException; import org.lwjgl.opengl.Display; import com.ardor3d.example.ExampleBase; import com.ardor3d.framework.FrameHandler; import com.ardor3d.image.Texture; import com.ardor3d.image.Image.Format; import com.ardor3d.input.logical.Logic...
package org.poly2tri.examples.ardor3d.base; import java.nio.FloatBuffer; import java.util.List; import org.poly2tri.geometry.polygon.PolygonSet; import org.poly2tri.triangulation.TriangulationAlgorithm; import org.poly2tri.triangulation.TriangulationPoint; import org.poly2tri.triangulation.TriangulationProces...
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of sourc...
package org.poly2tri.examples; import org.poly2tri.Poly2Tri; import org.poly2tri.triangulation.sets.PointSet; import org.poly2tri.triangulation.util.PointGenerator; public class ProfilingExample { public static void main(final String[] args) throws Exception { PointSet ps = new Poi...
package cx.hell.android.pdfview; import java.io.File; import java.io.FileDescriptor; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import java.util.Date; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.conten...
package cx.hell.android.pdfview; import java.io.File; import java.util.ArrayList; import android.content.Context; import android.content.SharedPreferences; public class Recent extends ArrayList<String> { /** * Default serial version identifier because base class is serializable. */ private stati...
package cx.hell.android.pdfview; import android.app.Activity; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.content.pm.ActivityInfo; import android.content.res.Resources; import android.graphics.Color; import android.os.Bundl...
package cx.hell.android.pdfview; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; /** * Displays "About..." info. */ public class AboutPDFViewActivity extends Activity { ...
package cx.hell.android.pdfview; // #ifdef pro // import java.lang.reflect.InvocationTargetException; // import java.lang.reflect.Method; // // import android.util.Log; // import android.view.View; // #endif /** * Find newer methods using reflection and call them if found. */ final public class Androi...
package cx.hell.android.pdfview; import java.io.IOException; import java.io.InputStream; import android.util.Log; import android.widget.ProgressBar; public class StreamUtils { public static byte[] readBytesFully(InputStream i) throws IOException { return StreamUtils.readBytesFully(i, 0, null); } ...
package cx.hell.android.pdfview; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import androi...
package cx.hell.android.pdfview; import android.graphics.Bitmap; public class BitmapCacheValue { public Bitmap bitmap; /* public long millisAdded; */ public long millisAccessed; public long priority; public BitmapCacheValue(Bitmap bitmap, long millisAdded, long priority) { this.bitmap = bitmap; ...
package cx.hell.android.pdfview; /** * High level user-visible application exception. */ public class ApplicationException extends Exception { private static final long serialVersionUID = 3168318522532680977L; public ApplicationException(String message) { super(message); } }
package cx.hell.android.pdfview; // #ifdef pro // // import java.text.SimpleDateFormat; // import java.util.ArrayList; // import java.util.Collections; // import java.util.Date; // import java.util.HashMap; // import java.util.Iterator; // import java.util.List; // import java.util.Map; // // import and...
package cx.hell.android.pdfview; import android.content.SharedPreferences; import android.view.KeyEvent; public class Actions { public int zoom; public int longZoom; public int upDown; public int volume; public int leftRight; public int rightUpDown; public int topBottomTap; public static final ...
package cx.hell.android.pdfview; public class BookmarkEntry implements Comparable<BookmarkEntry> { public int numberOfPages; public int page; public float absoluteZoomLevel; public int rotation; public int offsetX; public String comment; public BookmarkEntry(int numberOfPages, int page, float absolu...
package cx.hell.android.pdfview; import java.io.File; public class FileListEntry { private String label = null; private File file = null; private boolean isDirectory = false; private int type = NORMAL; private int recentNumber = -1; static final int NORMAL = 0; static final int HOME = 1; stati...
/* * Copyright 2010 Ludovic Drolez * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This prog...
package cx.hell.android.pdfview; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import android.app.Activity; import android.graphics.Bitmap; import android.os.SystemCl...
package cx.hell.android.lib.view; // #ifdef pro // // import java.util.Collections; // import java.util.HashMap; // import java.util.List; // import java.util.Map; // import java.util.Stack; // // import android.content.Context; // import android.graphics.Color; // import android.util.Log; // import and...
package cx.hell.android.lib.pdf; import java.io.File; import java.io.FileDescriptor; import java.util.List; import cx.hell.android.lib.pagesview.FindResult; // #ifdef pro // import java.util.ArrayList; // import java.util.Stack; // import cx.hell.android.lib.view.TreeView; // import cx.hell.android.lib.v...
package cx.hell.android.lib.pagesview; // you're encouraged to use this piece of code for anything, either commercial or free, // either close-sourced or open-sourced. However, do put a line in your "About" section // saying that you used a code from dairyknight (dairyknight@gmail.com). That's the only request ...
package cx.hell.android.lib.pagesview; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import android.graphics.Rect; import android.util.Log; /** * Find result. */ public class FindResult { /** * Logging tag. */ public static final String TAG = "cx.hell.andr...
package cx.hell.android.lib.pagesview; /** * Tile definition. * Can be used as a key in maps (hashable, comparable). */ public class Tile { /** * X position of tile in pixels. */ private int x; /** * Y position of tile in pixels. */ private int y; private int zoom; private in...
package cx.hell.android.lib.pagesview; public class RenderingException extends Exception { private static final long serialVersionUID = 1010978161527539002L; public RenderingException(String message) { super(message); } }
package cx.hell.android.lib.pagesview; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.graphics.Bitmap; import android.graphics.Canvas; i...
package cx.hell.android.lib.pagesview; import java.util.Map; import android.graphics.Bitmap; /** * Allow renderer to notify view that new bitmaps are ready. * Implemented by PagesView. */ public interface OnImageRenderedListener { void onImagesRendered(Map<Tile,Bitmap> renderedImages); void onRender...
package cx.hell.android.lib.pagesview; import java.util.Collection; import android.graphics.Bitmap; /** * Provide content of pages rendered by PagesView. */ public abstract class PagesProvider { /** * Get page image tile for drawing. */ public abstract Bitmap getPageBitmap(Tile tile); /...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package saveasimage; import java.awt.image.RenderedImage; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxtable.control; import java.util.LinkedList; import java.util.List; /** * * @author Rakesh Menon */ public abstract class AbstractTableModel implements TableModel { protected List<TableModelListe...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxtable.control; /** * * @author Rakesh Menon */ public interface TableModel { public void addTableModelListener(TableModelListener l); public void removeTableModelListener(TableModelListener l...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxtable.control; import java.util.LinkedList; import java.util.List; /** * * @author Rakesh Menon */ public class DefaultTableModel extends AbstractTableModel { private List<List> data = new Linke...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxtable.control; /** * * @author Rakesh Menon */ public interface TableModelListener { public void tableDataChanged(); public void tableRowsDeleted(int firstRow, int lastRow); public vo...
package javafxjavascript; import java.applet.Applet; import java.lang.reflect.Method; /** * * @author Rakesh Menon */ public class JavaScriptUtil { private Class jsClass = null; private Object jsObject = null; public JavaScriptUtil(Applet applet) throws Exception { /** * var...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxjsp; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.SimpleTa...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package registerfont; /** * * @author Rakesh Menon */ import java.awt.Font; import java.awt.GraphicsEnvironment; import java.lang.reflect.Method; import java.net.URL; import javafx.async.RunnableFuture; class Font...
package alwaysontop; import java.awt.AWTEvent; import java.awt.Color; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.AWTEventListener; import java.awt.event.ContainerEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; import jav...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxasync; import javafx.async.RunnableFuture; /** * * @author Rakesh Menon */ public class JavaRunnable implements RunnableFuture { private Runnable runnable = null; private int count = 1; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxprint; import java.awt.image.RenderedImage; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.BufferedInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import javax.servlet.ServletException; import...
/* * JavaScriptUtil.java * * Created on 31 Jul, 2009, 10:35:57 AM */ package javafxyt.javascript; import java.applet.Applet; import java.lang.reflect.Method; /** * * @author Rakesh Menon */ public class JavaScriptUtil { private Class jsClass = null; private Object jsObject = null; public JavaScr...
/* * JavaYTUtil.java * * Created on 31 Jul, 2009, 10:35:57 AM */ package javafxyt.javascript; import java.applet.Applet; /** * * @author Rakesh Menon */ public class JavaYTUtil { private static final String[] EMPTY_STRING_ARRAY = new String[] { }; private JavaScriptUtil javascript = null; ...
package deployment; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Container; import java.awt.EventQueue; import java.awt.event.ComponentAdapter; import java.net.URL; import javax.swing.JFrame; import java.lang.reflect.Method; import javax.jnlp.DownloadServiceListener; /** * * @author Rake...
package deployment; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.EventQueue; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.MediaTracker; im...
package javafxfacebook; import java.io.InputStream; import java.io.InputStreamReader; /** * * @author Rakesh Menon */ public class IOUtils { public static String getStreamAsString(InputStream in) { StringBuffer buffer = new StringBuffer(); try { InputStreamReader inr = new Input...
/* * JavaScriptUtil.java * * Created on 31 Jul, 2009, 10:35:57 AM */ package javascript; import java.applet.Applet; import java.lang.reflect.Method; /** * * @author Rakesh Menon */ public class JavaScriptUtil { private Class jsClass = null; private Object jsObject = null; public JavaScriptUtil(A...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package modaldialog; import java.awt.AWTEvent; import java.awt.EventQueue; import java.awt.Toolkit; import java.util.EmptyStackException; /** * * @author Rakesh Menon */ public class EventQueueUtils { private...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package modaldialog; import java.awt.AWTEvent; /** * * @author Rakesh Menon */ public interface EventFilter { public boolean accept(AWTEvent event); }
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modificati...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxdatabase.modal; import java.util.Random; /** * * @author Rakesh Menon */ public class Customer { private static final Random random = new Random(System.currentTimeMillis()); private int cust...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxdatabase; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import java.util.L...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javafxoauth.api.util; import com.sun.javafx.io.http.impl.Base64; import java.lang.reflect.Constructor; import java.lang.reflect.Method; /** * @author Rakesh Menon */ public class SignUtils { private st...
package javafxoauth.api.util; import java.io.InputStream; import java.io.InputStreamReader; /** * * @author Rakesh Menon */ public class IOUtils { public static String getStreamAsString(InputStream in) { StringBuffer buffer = new StringBuffer(); try { InputStreamReader inr = new...
/* * Copyright (c) 2009, Sun Microsystems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this ...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modifi...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package downloadservice; import java.applet.Applet; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Label; import javax.jnlp.DownloadService2; import javax.jnlp.DownloadService2.ResourceSpec; impor...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase enemigo representa a todos los enemigos en general */ public class Enemigo extends Mover { private int velocidadBala=0; //velocidad de la bala del enemigo private int tiempoGiro=0; //tiempo en que el tanque enemig...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** */ public class Tank1 extends Enemigo { public void act() { super.act(); } }
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Esta Clase se utiliza para ir contando el numero de enemigos muertos del juego */ public class ContadorEnemigos extends Actor { /** * Act - do whatever the ContadorEnemigos wants to do. This method is called whenever ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Cuartel es subclase de Muro y es la que protege a la clase Aguila del usuario * que es la importante del juego. */ public class Cuartel extends Muro { /** * Act - do whatever the Home wants to do. This method is ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class PoderAcero here. * * @author (your name) * @version (a version number or a date) */ public class PoderAcero extends Actor { /** * Act - do whatever the PoderAcero wants to do. T...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Seleccionador se utiliza para el menu principal * solo se muevo en poscion vertical en el rango de las opciones */ public class Seleccionador extends Tanque { private Fondo fondo; //Mundo del Seleccionador privat...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Tanque2 here. * * @author (your name) * @version (a version number or a date) */ public class Tanque2 extends Mover { private final int IZQ=-45; //Grados que gira hacia la izquierda ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.util.List; /** * La Clase Tanque es la que maneja el usuario * puede cambiar su direccion IZQ o DER * una direccion y una velocidad */ public class Tanque extends Mover { private final int IZQ=-45; //Grados que gira ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Bala se utiliza para simular una bala al momento de disparar */ public class Bala extends Mover { private int dir; Bala(int direccion) { dir=direccion; setRotation(dir); } p...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Esta Clase Representa la Bala del Enemigo */ public class Bala2 extends Mover { private int dir; //direccion de la bala Bala2(int direccion) { dir=direccion; setRotation(dir); } public vo...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Bomba here. * * @author (your name) * @version (a version number or a date) */ public class Bomba extends Actor { /** * Act - do whatever the Bomba wants to do. This method is c...
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot) import java.util.*; /** * La clase explosion empieza cuando una bala toca a un enemigo o al jugador * Simula una eplosion */ public class Explosion extends Actor { //Imagenes private final GreenfootImage imagen1=new GreenfootImage("EX1.pn...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Aguila es la mas importante del juego ya que si se destruye esta * se habra perdido el juego pero no tiene metodos ni variables de instancia */ public class Aguila extends Actor { /** * Act - do whatever the Fl...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Esta Clase se utiliza para poner un objeto en el escenario */ public class MuroAcero extends Actor { /** * Act - do whatever the Ironwall wants to do. This method is called whenever * the 'Act' or 'Run' button gets p...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Muro es para poner en el escenario un tipo laberinto dependiendo * del nivel */ public class Muro extends Actor { public void act() { checaBala(); } /** * checa si fue tocada por...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Arbusto here. * * @author (your name) * @version (a version number or a date) */ public class Arbusto extends Actor { /** * Act - do whatever the Arbusto wants to do. This metho...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Font; import java.awt.Color; /** * Tiempo del Juego */ public class Reloj extends Actor { private String minutes; //Cadena de minutos para mostrar el reloj en el mundo private String seconds; //Cadena de Segundos ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Agua here. * * @author (your name) * @version (a version number or a date) */ public class Agua extends Actor { /** * Act - do whatever the Agua wants to do. This method is call...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase vidas solo es para contar las vidas del jugador * no tiene metodos ni variables */ public class Vida extends Actor { /** * Act - do whatever the vida wants to do. This method is called whenever * the 'Act' ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Boss representa al jefe final del juego * el cual es mas resistente con las balas */ public class Boss extends Enemigo { private int vida=200;//vida del jefe public void act() { super.act(); ...
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot) import java.util.List; /** * Esta clase simula el movimiento del actor */ public class Mover extends Actor { private static final double velocidad = 5.0; /** * Gira 90 grados a la derecha. */ public void turn() { ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class CuartelAcero here. * * @author (your name) * @version (a version number or a date) */ public class CuartelAcero extends MuroAcero { /** * Act - do whatever the CuartelAcero want...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class PoderInd here. * * @author (your name) * @version (a version number or a date) */ public class PoderInd extends Actor { /** * Act - do whatever the PoderInd wants to do. This me...
package il.technion.cs236369.proxy; import java.util.Properties; import javax.net.ServerSocketFactory; import javax.net.SocketFactory; import com.google.inject.AbstractModule; import com.google.inject.Scopes; import com.google.inject.name.Names; public class HttpProxyModule extends AbstractModule { protected fina...
package il.technion.cs236369.proxy; import java.io.IOException; public interface IHttpProxy { void bind() throws IOException; void start(); }
package il.technion.cs236369.proxy; import javax.net.ServerSocketFactory; import javax.net.SocketFactory; import com.google.inject.Inject; import com.google.inject.name.Named; public abstract class AbstractHttpProxy implements IHttpProxy { protected final SocketFactory sockFactory; protected final Server...
package il.technion.cs236369.proxy; import java.io.FileInputStream; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.Properties; import javax.net.ServerSocketFactory; import javax.net.SocketFactory; import org.apache.http.impl.DefaultHttpServerConnection; import org....
package il.technion.cs236369.proxy; import il.technion.cs236369.proxy.testCases.BasicTest; import junit.framework.TestCase; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; @RunWith(Suite.class) @SuiteClasses({ BasicTest.class }) public class Pr...