text
stringlengths
3
1.18M
package mh.entity.object; import java.util.ArrayList; import java.util.Collections; import java.util.List; import mh.entity.IContainer; import mh.map.Texture; public class EntityFurnitureContainer extends EntityFurniture implements IContainer { private ArrayList<EntityObject> inside; private int maxCapacity;...
package mh.entity.object; /** * All possible height of <code>EntityObject</code> * * @author Gianmarco Laggia * @author Alberto D'Este * */ public enum EnumEntityObjectSize{ /** A short object will let spells pass, unless they can interact with it */ SHORT, /** A medium object will block spells only while f...
package mh.entity.player; public interface ISpellCaster { public void subtractMagicPower(double quantity); public void sumMagicPower(double quantity); public double getActualMagicPower(); }
package mh.entity; import java.util.HashMap; import mh.entity.object.EntityObject; import mh.entity.player.EntityPlayer; import mh.entity.spell.EntitySpell; public class EntityList { private static final HashMap<Integer, EntityObject> OBJECTS_AVAILABLE = new HashMap<Integer, EntityObject>(); private static final ...
package mh.entity; public interface IPickAndCollect { public boolean isPickable(); public boolean isCollectable(); }
package mh.entity; /** * Used to specify the registration point of an <code>Entity</code> * * @author Gianmarco Laggia * @author Alberto D'Este * */ public enum EnumPosition{ /** * <code> * +---------+<br> * | &nbsp;&nbsp; X &nbsp;&nbsp; |<br> * | &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; |<br> * | &nbsp;&nb...
package mh.entity; import static mh.entity.EnumState.BROKEN; import static mh.entity.EnumState.DAMAGED; import static mh.entity.EnumState.INTACT; import java.util.Vector; import mh.interfaces.Constants; import mh.map.render.Render; import mh.util.Pair; /** * Abstract definition for each entity present in the game,...
package mh.entity.spell; import mh.entity.Damage; import mh.entity.Entity; import mh.entity.player.EntityPlayer; import mh.map.render.RenderSpell; public class EntitySpell extends Entity { private Damage damage; private EnumSpells spell; private EntityPlayer sender; private double velocity = 0; private do...
package mh.entity.spell; public enum EnumSpellType{ DEFENSE(0), ATTACK(1), SPECIAL(2), UNFORGIVABLE_CURSE(3); private int num; private EnumSpellType(int n) { this.num = n; } }
package mh.entity.spell; import static mh.entity.DamageEffectEnum.*; import static mh.entity.spell.EnumSpellType.*; import java.util.Hashtable; import mh.entity.DamageEffectEnum; public enum EnumSpells{ // SPELL_S_NAME ( VELOCITY - HASHTABLE(EFFECT - VALUE) - spellset - positionInSet - BLOCKABLE - canINTERACT ) ...
package mh; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.logging.Logger; import javax.swing.JOptionPane; import mh.chat.MessageType; import mh.message.IncomingMessage; import mh.util.SHAHash; import org.lwjgl.Sys; public class MessageExecutor implements Runnable { /*...
package mh; import java.awt.Rectangle; import mh.interfaces.Constants; import mh.interfaces.IImage; /** * Define the baseline for <code>PlayerEntity</code>, <code>OtherEntity</code> and <code>SpriteEntity</code>.<br> * This abstract class represent each player or any other thing that is moving in the map. * * @...
package mh; /** * Other players in the map use this Entity.<br> * * @author Gianmarco * @see Entity * */ public class OtherEntity extends Entity { private static long lifePoints; private static int level; private static long experience; private static long money; private static int darkness; priva...
/* * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the abo...
package mh.map.render; import static mh.entity.EnumState.INTACT; import static mh.entity.EnumState.LOCKED; import static org.lwjgl.opengl.GL11.GL_QUADS; import static org.lwjgl.opengl.GL11.glBegin; import static org.lwjgl.opengl.GL11.glColor3f; import static org.lwjgl.opengl.GL11.glEnd; import static org.lwjgl.opengl....
package mh.map.render; import java.awt.image.BufferedImage; import mh.entity.EnumPosition; import mh.entity.object.EntityFurniture; public class RenderFurniture extends Render { /** The height of the piece that has to be drawed in the background, the rest will be draw in the foreground */ protected int baseHeight...
package mh.map.render; import static mh.entity.EnumState.BLASTED; import static mh.entity.EnumState.BLASTING_OUT; import static mh.entity.EnumState.FLOATING; import static mh.entity.EnumState.LOCKED; import static org.lwjgl.opengl.GL11.GL_QUADS; import static org.lwjgl.opengl.GL11.GL_TEXTURE_2D; import static org.lwjg...
package mh.map.render; /** * Declares what a drawable object should behave. * * @author Gianmarco Laggia * @author Alberto D'Este * */ public interface IDrawable { /** * Draw the texture in the render, according to the params passed in ent.<br> * If the param <code>foreground</code> is true then the part...
package mh.map; import java.awt.Color; import java.awt.Graphics; import java.awt.Transparency; import java.awt.color.ColorSpace; import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt.image.ComponentColorModel; import java.awt.image.DataBuffer; import java.awt.image.DataBufferByte; impo...
package mh.map; import java.io.IOException; import mh.GameWindow; import mh.interfaces.IImage; import org.lwjgl.opengl.GL11; /** * The image shown when a spell is created.<br> * Rotation and animation are included. * * @author Gianmarco Laggia * */ public class SpellImage implements IImage { /** * The a...
package mh.map; import java.util.ArrayList; import mh.entity.object.EntityObject; /** * The layer that contains each of the entity of objects player in this specific map. * * @author Gianmarco Laggia * */ public class ObjectsLayer extends Layer { /** * The list of all the entities in this layer */ priv...
package mh.map; import java.awt.Point; import java.util.HashMap; import java.util.Properties; import mh.interfaces.IImage; /** * Each single Layer of the <code>Map</code> that contain only drawable tiles.<br> * * @author Gianmarco * * TODO RENAME CORRECT VARS for drawing * */ public class MapLayer ...
package mh.map; import java.awt.Rectangle; import java.util.Properties; import mh.interfaces.Constants; /** * A Layer of the Map, this class is abstract because must be extended for each type of level * * @author Gianmarco Laggia * @since 16/08/2013 */ public abstract class Layer implements Constants { /** ...
package mh.map.objectset; import java.awt.Color; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.Iterator; import java.util.TreeMap; import java.util.Vector; import mh.entity.object.EntityObject; import mh.map.CachedResources; import mh.map.Texture; /** * <...
package mh.map.objectset; import imageEditor.PngImage; import java.awt.Color; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.Properties; import java.util.Vector; import javax.imageio.ImageIO; import mh.entity...
package mh.map; import java.util.ArrayList; import java.util.HashMap; import java.util.Set; import java.util.TreeMap; import java.util.logging.Logger; import mh.entity.Entity; import mh.map.objectset.ObjectSet; import mh.map.render.Render; /** * Includes a static referenc to each {@link TileSet}, {@link ObjectSet},...
package mh.map; import java.util.ArrayList; import mh.SpellEntity; /** * The layer that contains each spell that is cast in this map. * * @author Gianmarco Laggia */ public class SpellsLayer extends Layer { /** * The list of the entities in this layer */ private ArrayList<SpellEntity> spells; /** * @...
package mh.map; import static org.lwjgl.opengl.GL11.GL_QUADS; import static org.lwjgl.opengl.GL11.glBegin; import static org.lwjgl.opengl.GL11.glColor3f; import static org.lwjgl.opengl.GL11.glEnd; import static org.lwjgl.opengl.GL11.glPopMatrix; import static org.lwjgl.opengl.GL11.glPushMatrix; import static org.lwjgl...
package mh.map; import org.lwjgl.opengl.GL11; /** * A texture to be bound within JOGL. This object is responsible for keeping track of a given OpenGL texture and for * calculating the texturing mapping coordinates of the full image. * * Since textures need to be powers of 2 the actual texture may be considerably...
package mh.map; import java.util.Properties; import java.util.Vector; import java.util.logging.Logger; import mh.PlayerEntity; import mh.SpellEntity; import mh.interfaces.Constants; import mh.map.objectset.ObjectSet; /** * This class is the main class of all the tile-map system.<br> * It's generated from the {@lin...
/* * FIRST IDEA FROM: * Copyright 2004-2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * FURTHER DEVELOPING: * Gianmarco Laggia and Alberto D'Este * * This file is BASED on libtiled-java. * * Redistribution and use in source and binary forms, wi...
package mh.map; import java.util.ArrayList; import mh.OtherEntity; /** * The layer that contains each of the entity of others player in this specific map. * * @author Gianmarco Laggia * */ public class OthersLayer extends Layer { /** * The list of the entities in this layer */ private ArrayList<OtherEn...
package mh.map; import java.io.IOException; import mh.GameWindow; import mh.interfaces.IImage; import org.lwjgl.opengl.GL11; /** * This class create a new animated sprite the uses a <code>Texture</code> that contains each frame of the animation.<br> * The animation is a matrix of frames 3x5, each line contains a ...
package gmmxEditor; import java.awt.Color; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.Serializable; public class Preferences implements Seriali...
package gmmxEditor; import java.awt.Graphics; import java.awt.Rectangle; import java.awt.image.BufferedImage; import mh.entity.Entity; import mh.entity.EnumState; import mh.map.render.Render; public class SimpleRender extends Render implements ISimpleDrawable { public SimpleRender(Render r) { super(r, null); } ...
package gmmxEditor; import java.awt.Rectangle; import java.awt.image.BufferedImage; public interface IImaged { public BufferedImage getImage();//TODO change with the correct object public Rectangle getRect(); }
package gmmxEditor; public class Size { private int width; private int height; public Size(int width, int height) { this.width = width; this.height = height; } public int getWidth() { return this.width; } public void setWidth(int width) { this.width = width; } public int getHeight() { return thi...
package gmmxEditor; public interface ISized { public Size getSize(); }
package gmmxEditor; import java.awt.Graphics; import java.awt.image.BufferedImage; import mh.entity.Entity; import mh.entity.EnumState; /** * Object drawable in a graphics ambient * * @author ziotob * */ public interface ISimpleDrawable { public BufferedImage getImage(); public Size getSize(); public vo...
package gmmxEditor; import gmmxEditor.GUI.CButton; import gmmxEditor.GUI.ColorPicker; import java.awt.BorderLayout; import java.awt.Component; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JDialog; import javax.swin...
package gmmxEditor; public interface IDrawable extends IImaged, ISized { }
package gmmxEditor; import static mh.entity.EnumState.BLASTED; import static mh.entity.EnumState.BROKEN; import static mh.entity.EnumState.BURNED; import static mh.entity.EnumState.BURNING; import static mh.entity.EnumState.CLOSED; import static mh.entity.EnumState.DAMAGED; import static mh.entity.EnumState.DUSTY; imp...
package gmmxEditor; import gmmxEditor.GUI.ImageFilter; import gmmxEditor.GUI.TilesPane; import java.awt.Color; import java.awt.Dimension; import java.awt.EventQueue; import java.awt.Graphics; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.ev...
package gmmxEditor.GUI; import gmmxEditor.Utils; import java.io.File; import javax.swing.filechooser.FileFilter; public class ImageFilter extends FileFilter { @Override public boolean accept(File f) { if (f.isDirectory()) { return true; } String extension = Utils.getExtension(f); if ...
package gmmxEditor.GUI; import gmmxEditor.ISimpleDrawable; import gmmxEditor.Preferences; import java.awt.Graphics; import java.awt.Point; import java.awt.Rectangle; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.M...
package gmmxEditor.GUI; import java.awt.Color; import java.awt.Graphics; import javax.swing.JButton; public class CButton extends JButton { private static final long serialVersionUID = -1284086749795509038L; private Color background = null; public CButton(String text) { super(text); } public CButton()...
package gmmxEditor.GUI; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import javax.swing.BorderFactory; import javax.swing.JColorChooser; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; import javax.swing.event.ChangeEven...
package gmmxEditor; import java.awt.Color; import java.io.File; public class Utils { public final static String jpeg = "jpeg"; public final static String jpg = "jpg"; public final static String gif = "gif"; public final static String tiff = "tiff"; public final static String tif = "tif";...
package mhserver; public class Player { private String name; public Player(String name) { this.name = name; } public String getNickname() { return this.name; } }
package mhserver; import java.awt.Component; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; import java.math.BigDecimal; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; ...
package mhserver; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.InetAddress; import java.net.Socket; import java.net.SocketException; /** * A single ClientListener thread runs for every user. IMPORTANT: the user won't be add to the users list until h...
package mhserver; import java.io.IOException; import java.net.DatagramPacket; import java.net.InetAddress; import java.net.MulticastSocket; public class MulticastSocketHandler { private static final int PORT = 5000; private MulticastSocket sock; private InetAddress address; public MulticastSocketHandler(Stri...
package mhserver; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import mh.message.IncomingMessage; /** * Netty's handler that processes the messages incoming from the clients. ...
package mhserver; public class Pair<A, B> { private final A a; private final B b; public Pair(A aa, B bb) { this.a = aa; this.b = bb; } public A getA() { return this.a; } public B getB() { return this.b; } @Override public String toString() { return this.a.toString(); } }
package mhserver; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketTimeoutException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Hashtable; import java.util.concurrent.LinkedBlockingQueue; import javax.s...
package mhserver; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import org.lwjgl.Sys; public class DatagramClient { private final static int PACKETSIZE = 100; public static void main(String args[]) { DatagramSocket socket = null; try { // Convert the argument...
package mhserver; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.text.ParseException; import java.util.ArrayList; import java.util.Hashtable; import java.util.logging.Logger; import mh.chat.MessageType; import mh.message.IncomingMessage; import mh.message.MessageParser; ...
package mhserver; import java.util.ArrayList; public class Map { private int[][] matrix; private ArrayList<String> players; private MulticastSocketHandler mcsHandler; }
package mhserver; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.MessageToMessageDecoder; import java.util.List; import mh.message.IncomingMessage; import mh.message.MessageParser; /** * Decoder that creates an <code>IncomingMessage</code> from a <code>String</code> in the inbound buf...
package mhserver; import java.net.DatagramPacket; import java.net.DatagramSocket; public class DatagramServer { private final static int PACKETSIZE = 100; public static void main(String args[]) { // Check the arguments try { // Convert the argument to ensure that is it valid int port = 45000;//Integer.pa...
package mhserver; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelFutureListener; import io.netty.channel.ChannelInitializer; import io.netty.channel.EventLoopGroup; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChan...
package otxImporter; import java.awt.Color; import java.awt.image.BufferedImage; import java.util.Arrays; import java.util.Vector; /** * Simple class that importa an image into an array of Objects satisfying the OBX format * * @author ziotob * @version 1.0 */ public class OTXImporter { /**********************...
package otxImporter; import java.awt.Color; public class OTXObjectThread extends Thread { private OTXImporter importer; //instance of importer for getting next pixels public OTXObjectThread(OTXImporter importer) {//constructor this.importer = importer; } @Override public void run() { int[] point;//x and y...
package otxImporter; import gmmxEditor.Size; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.util.Vector; public class Object implements OTXImportable { public static int STATE_DEFAULT = 0; public static int STATE_BROKEN_PARTIAL = 1; private int tileX; private int tileY; ...
package otxImporter; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.Vector; import javax.imageio.ImageIO; public class Main { public static void close(String error) { out("ERROR: " + error); System.exit(0); } public static void out(String s) { System...
package otxImporter; import gmmxEditor.IDrawable; import java.awt.image.BufferedImage; public interface OTXImportable extends IDrawable { public void setTile(int x, int y, int width, int height, BufferedImage img, int id, int state); public int getState(); public int getId(); public int getX(); public int ...
/* * Copyright 2004-2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2008, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the a...
/* * Copyright 2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the a...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2010, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2008, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2008, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2006, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2006, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
/* * Copyright 2004-2008, Thorbjrn Lindeijer <thorbjorn@lindeijer.nl> * Copyright 2004-2008, Adam Turk <aturk@biggeruniverse.com> * * This file is part of libtiled-java. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
package imageEditor; import java.awt.Color; import java.awt.image.BufferedImage; public class PngImage { public static Color getColor(int x, int y, BufferedImage i) { if ((x < 0) || (x >= i.getWidth()) || (y < 0) || (y > i.getHeight())) { return new Color(0, 0, 0, 0); } int color = i.getRGB(x, y); //Sy...
package imageEditor; import gmmxEditor.GUI.CButton; import gmmxEditor.GUI.ImageFilter; import java.awt.Color; import java.awt.Cursor; import java.awt.Dimension; import java.awt.EventQueue; import java.awt.Graphics; import java.awt.KeyEventDispatcher; import java.awt.KeyboardFocusManager; import java.awt.Point; import...
package mh.test; import mh.test.OSXImporterTest.Repeat; import org.junit.Ignore; import org.junit.runner.Description; import org.junit.runner.notification.RunNotifier; import org.junit.runners.BlockJUnit4ClassRunner; import org.junit.runners.model.FrameworkMethod; import org.junit.runners.model.InitializationError; i...
package mh.test; import org.junit.rules.TestWatcher; import org.junit.runner.Description; /** * Add the word fail or ok after a test. * * @author Gianmarco * */ public class SimpleOnFailedOrSucceeded extends TestWatcher { @Override protected void failed(Throwable e, Description description) { System.err.pr...
package org.anddev.andengine.examples; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.anddev.andengine.engine.Engine; import org.anddev.andengine.engine.camera.Camera; import org.anddev.andengine.engine.options.EngineOptions; import org.anddev.andengin...
package org.anddev.andengine.examples; import javax.microedition.khronos.opengles.GL10; import org.anddev.andengine.engine.Engine; import org.anddev.andengine.engine.camera.Camera; import org.anddev.andengine.engine.options.EngineOptions; import org.anddev.andengine.engine.options.EngineOptions.ScreenOrientati...
package org.anddev.andengine.examples.adt.card; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 18:59:33 - 18.06.2010 */ public enum Color { // =========================================================== // Elements // =================================...
package org.anddev.andengine.examples.adt.card; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 18:59:46 - 18.06.2010 */ public enum Value { // =========================================================== // Elements // =================================...
package org.anddev.andengine.examples.adt.card; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 18:59:13 - 18.06.2010 */ public enum Card { // =========================================================== // Elements // ==================================...
package org.anddev.andengine.examples.adt.cityradar; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 20:32:16 - 28.10.2010 */ public class City { // =========================================================== // Constants // ===========================...
package org.anddev.andengine.examples.adt.messages.client; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.anddev.andengine.extension.multiplayer.protocol.adt.message.client.ClientMessage; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * ...
package org.anddev.andengine.examples.adt.messages.client; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.anddev.andengine.extension.multiplayer.protocol.adt.message.client.ClientMessage; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * ...
package org.anddev.andengine.examples.adt.messages.client; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 12:00:00 - 21.05.2011 */ public interface ClientMessageFlags { // =========================================================== // Final Fields // ...
package org.anddev.andengine.examples.adt.messages.client; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import org.anddev.andengine.extension.multiplayer.protocol.adt.message.client.ClientMessage; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * ...
package org.anddev.andengine.examples.adt.messages; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 12:18:34 - 21.05.2011 */ public class MessageConstants { // =========================================================== // Constants // ================...
package org.anddev.andengine.examples.adt.messages.server; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 11:59:39 - 21.05.2011 */ public interface ServerMessageFlags { // =========================================================== // Final Fields // ...