text
stringlengths
3
1.18M
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
// Copyright 2010 Google Inc. All Rights Reserved. package com.google.android.apps.mytracks.testing; import com.google.android.apps.mytracks.content.MyTracksProviderUtils; import com.google.android.apps.mytracks.content.MyTracksProviderUtils.Factory; import android.content.Context; /** * A fake factory for {@link ...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
package com.google.android.apps.mytracks.services.sensors; import java.util.Arrays; import com.google.android.apps.mytracks.content.Sensor; import junit.framework.TestCase; public class PolarMessageParserTest extends TestCase { PolarMessageParser parser = new PolarMessageParser(); // A complete and valid Polar...
package com.google.android.apps.mytracks.services.sensors; import com.google.android.apps.mytracks.Constants; import com.google.android.apps.mytracks.services.sensors.ant.AntDirectSensorManager; import com.google.android.apps.mytracks.services.sensors.ant.AntSRMSensorManager; import com.google.android.maps.mytracks.R;...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
package com.google.android.apps.mytracks.services.sensors; import com.google.android.apps.mytracks.content.Sensor; import junit.framework.TestCase; public class ZephyrMessageParserTest extends TestCase { ZephyrMessageParser parser = new ZephyrMessageParser(); public void testIsValid() { byte[] smallBuf = n...
/* * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
package net.game.server.game; public class Position { private int x; private int y; private int z; public Position(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } public int getX() { return x; } public int getY...
package net.game.server.game.player; import net.game.server.game.Entity; import net.game.server.game.Position; import org.jboss.netty.channel.Channel; public class Player implements Entity { private String username; private String password; private byte rights; private int index; privat...
package net.game.server.game; import net.game.server.game.player.Player; import net.game.server.util.Constants; import net.game.server.util.graph.Graph; import net.game.server.util.graph.impl.ArrayGraph; public class World implements Constants { private static Graph<Player> players = new ArrayGraph<Player...
package net.game.server.game; import org.jboss.netty.channel.Channel; public interface Entity { void setIndex(int idx); int index(); Position position(); Channel channel(); }
package net.game.server; import net.game.server.io.net.ServerPipelineFactory; import net.game.server.util.Constants; import net.game.server.util.log.Logger; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; import java.net.InetSocketAddr...
package net.game.server.util.graph; import java.util.Iterator; import java.util.RandomAccess; public interface Graph<E> extends Iterable<E>, RandomAccess { void plot(int idx, E e); void plot(int idx, E[] e); void plotNext(E e); void plotNext(E[] e); void remove(in...
package net.game.server.util.graph.impl; import net.game.server.util.graph.Graph; import java.util.Iterator; public class ArrayGraph<E> implements Graph<E> { private E[] entries; private int cap; private int offset = 0; @SuppressWarnings("unchecked") public ArrayGraph(int cap) { ...
package net.game.server.util.graph.impl.itr; public class ArrayGraphIterator { }
package net.game.server.util; public interface Constants { public static final int MAX_PLAYERS = 2000; public static final int PORT = 9000; }
package net.game.server.util.log; import java.text.SimpleDateFormat; import java.util.Date; public class Logger { public static void put(String s) { String format = new SimpleDateFormat("[HH:mm:ss]: ").format(new Date()); System.out.println(format + s); } }
package net.game.server.util.crypto; /** ------------------------------------------------------------------------------ IsaacRandom.java: By Bob Jenkins. My random number generator, ISAAC. rand.init() -- initialize rand.val() -- get a random value MODIFIED: 960327: Creation (addition of randinit, reall...
package net.game.server.util.crypto; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SHA512 { public static byte[] encode(byte[] data) { try { MessageDigest md = MessageDigest.getInstance("SHA-512"); return md.digest(da...
package net.game.server.util.crypto; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.security.*; public class RSAKeyGen { private static PublicKey publicKey; private static PrivateKey privateKey; public st...
package net.game.server.util.crypto; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import java.io.IOException; public class BASE64 { public static String encode(String s) { return new BASE64Encoder().encode(s.getBytes()); } public static String decode(String...
package net.game.server.io.net; import net.game.server.util.log.Logger; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ChannelStateEvent; import org.jboss.netty.channel.SimpleChannelHandler; public class ConnectionHandler extends SimpleChannelHandler { @Override ...
package net.game.server.io.net.codec; import net.game.server.game.player.Player; import net.game.server.io.PlayerWorker; import net.game.server.util.crypto.BASE64; import net.game.server.util.crypto.IsaacRandom; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.channel.Channel; import org.jbo...
package net.game.server.io.net; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; public class Buffer { private int opcode; private ChannelBuffer buffer; public Buffer(int opcode) { this.opcode = opcode; buffer = ChannelBuffers.dynam...
package net.game.server.io.net; import org.jboss.netty.buffer.ChannelBuffer; public class Packet { private int opcode; private ChannelBuffer buffer; public Packet(int opcode, ChannelBuffer buffer) { this.opcode = opcode; this.buffer = buffer; } }
package net.game.server.io.net; import net.game.server.io.net.codec.LoginDecoder; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.channel.ChannelPipelineFactory; import org.jboss.netty.channel.Channels; public class ServerPipelineFactory implements ChannelPipelineFactory { @Override...
package net.game.server.io; import net.game.server.game.Position; import net.game.server.game.player.Player; import net.game.server.util.crypto.BASE64; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.Channel; import java.io.FileNotFoun...
package com.bloggers.model; import java.util.Date; public class Book { /* for primary key in database table */ private int bookId; private String bookName; private Date date; public int getBookId() { return bookId; } public void setBookId(int bookId) { this.bookId = bookId; } pu...
package com.bloggers.util; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtil { private static final SessionFactory sessionFactory = buildSessionFactory(); private static SessionFactory buildSessionFactory() { try { // Create the SessionFact...
package com.bloggers; import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory; import com.bloggers.model.Book; import com.bloggers.util.HibernateUtil; public class HibernateTest { public static void main(String[] args) { HibernateTest hibernateTest = new Hibernat...
package com.blogger.vehicle; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.blogger.vehicle.beans.Vehicle; public class TestVehicle { public static void main(String[] args) { // ApplicationContext context = new ClassP...
package com.blogger.vehicle.beans.impl; import com.blogger.vehicle.beans.Vehicle; public class Car implements Vehicle { private int speed = 20; public void run() { System.out.println("Car is running with the speed of : " + speed + " km/h"); } }
package com.blogger.vehicle.beans; public interface Vehicle { public void run(); }
package com.bloggers.model; import java.util.Date; public class Book { /* for primary key in database table */ private int bookId; private String bookName; private Date date; public int getBookId() { return bookId; } public void setBookId(int bookId) { this.bookId = bookId; } pu...
package com.bloggers.util; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtil { private static final SessionFactory sessionFactory = buildSessionFactory(); private static SessionFactory buildSessionFactory() { try { // Create the SessionFact...
package com.bloggers; import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory; import com.bloggers.model.Book; import com.bloggers.util.HibernateUtil; public class HibernateTest { public static void main(String[] args) { HibernateTest hibernateTest = new Hibernat...
package com.bloggers.bodytag; import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.tagext.BodyContent; import javax.servlet.jsp.tagext.BodyTagSupport; public class BodyTagLifecycle extends BodyTagSupport { /*@Override public in...
package com.blogger.vehicle; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.blogger.vehicle.beans.Vehicle; public class TestVehicle { public static void main(String[] args) { // ApplicationContext context = new ClassP...
package com.blogger.vehicle.beans.impl; import com.blogger.vehicle.beans.Vehicle; public class Car implements Vehicle { private int speed = 20; public void run() { System.out.println("Car is running with the speed of : " + speed + " km/h"); } }
package com.blogger.vehicle.beans; public interface Vehicle { public void run(); }
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * A Counter class that allows you to display a numerical value on screen. * * The Counter is an actor, so you will need to create it, and then add it to * the world in Greenfoot. If you keep a reference to ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Peaton here. * * @author (your name) * @version (a version number or a date) */ public class Peaton extends Obstaculos { /** * Act - do whatever the Peaton wants to do. This met...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Play here. * * @author (your name) * @version (a version number or a date) */ public class Play extends Actor { /** * Act - do whatever the Play wants to do. This method is call...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Margen here. * * @author (your name) * @version (a version number or a date) */ public class Margen extends Actor { /** * Act - do whatever the Margen wants to do. This method i...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Poli here. * * @author (your name) * @version (a version number or a date) */ public class Poli extends Actor { private Actor colicionObstaculo; private Actor colicionF; privat...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Menu here. * * @author (your name) * @version (a version number or a date) */ public class Menu extends Actor { /** * Act - do whatever the Menu wants to do. This method is call...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Arma here. * * @author (your name) * @version (a version number or a date) */ public class Arma extends Obstaculos { /** * Act - do whatever the Arma wants to do. This method is...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Turbe here. * * @author (your name) * @version (a version number or a date) */ public class Turbe extends Actor { private GreenfootImage ima; private int desvanecer; p...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class BalaN here. * * @author (your name) * @version (a version number or a date) */ public class BalaN extends Actor { private int numGolpes=0; private int x=0; private Actor c...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Sangre here. * * @author (your name) * @version (a version number or a date) */ public class Sangre extends Actor { private GreenfootImage ima1; private GreenfootImage ima2; pr...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Gas here. * * @author (your name) * @version (a version number or a date) */ public class Gas extends Obstaculos { /** * Act - do whatever the Gas wants to do. This method is ca...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) public class PedCarro extends SmoothMover { private static final Vector G =new Vector(90,1.5); private static final int F =20; public PedCarro() { int direccion=Greenfoot.getRandomNumber(360); int ve...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Obstaculos here. * * @author (your name) * @version (a version number or a date) */ public class Obstaculos extends Actor { private Actor collided; public void act() { ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Alcantarilla here. * * @author (your name) * @version (a version number or a date) */ public class Alcantarilla extends Obstaculos { World mundo=getWorld(); public void act() ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Niveles here. * * @author (your name) * @version (a version number or a date) */ public class Niveles extends Actor { private GreenfootImage ima1; private GreenfootImage ima2; ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class PoliArm here. * * @author (your name) * @version (a version number or a date) */ public class PoliArm extends Actor { private Actor colicionObstaculo; private Actor colicionF; ...
/** * Vector - This class was written as a utility class for Greenfoot scenarios. * * This class represents a 2-dimensional vector. * * The vector can be used to deal with movement information (speed and * direction) of actors. An actor can store a vector, and then other vectors * can be added to modi...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Bala here. * * @author (your name) * @version (a version number or a date) */ public class Disparo extends Actor { private int existe; private Actor colicionTronco; pr...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Ayuda here. * * @author (your name) * @version (a version number or a date) */ public class Ayuda extends Actor { /** * Act - do whatever the Ayuda wants to do. This method is c...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Escalado here. * * @author (your name) * @version (a version number or a date) */ public class Escalado extends Actor { private int cont; Ladron l; /** * Act - do what...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Meta here. * * @author (your name) * @version (a version number or a date) */ public class Meta extends Obstaculos { /** * Act - do whatever the Meta wants to do. This method is...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.lang.Math.*; /** * Write a description of class AnimaActor here. * * @author (your name) * @version (a version number or a date) */ public class AnimaActor extends Mover { private GreenfootImage[] images; ...
import greenfoot.*; import java.util.Timer; import java.util.TimerTask; /** * Write a description of class Mundo here. * * @author (your name) * @version (a ve /** * Write a description of class Mundo here. * * @author (your name) * @version (a version number or a date) */ public class Mun...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.lang.Math.*; /** * Write a description of class Ladron here. * * @author (your name) * @version (a version number or a date) */ public class Ladron extends AnimaActor { private Actor colicionCarro; pr...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.util.Calendar; import java.awt.Font; import java.awt.Color; /** * A clock. Displays the time. * * @author Michael Berry (mjrb4) * @version 06/12/08 */ public class Reloj extends Actor { /** The hours to...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Atras here. * * @author (your name) * @version (a version number or a date) */ public class Atras extends Actor { /** * Act - do whatever the Atras wants to do. This method is c...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.lang.*; /** * Write a description of class CarroObs here. * * @author (your name) * @version (a version number or a date) */ public class CarroObs extends Obstaculos { private GreenfootImage ima1; priva...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Escala here. * * @author (your name) * @version (a version number or a date) */ public class Escala extends Actor { /** * Act - do whatever the Escala wants to do. This method i...