Permalink
Browse files

Mostly automated rename of forplay->playn

  • Loading branch information...
progers committed Aug 6, 2011
1 parent 5243b84 commit c97ee9f4042d8b813cc8fcd9ee59cbb59d28f7c4
Showing 556 changed files with 2,200 additions and 1,946 deletions.
@@ -59,11 +59,11 @@ target

# /sample/m2/snapshots/com/googlecode/

# /sample/m2/snapshots/com/googlecode/forplay/
# /sample/m2/snapshots/com/googlecode/playn/

# /sample/m2/snapshots/com/googlecode/forplay/forplay-hello-core-archetype/
# /sample/m2/snapshots/com/googlecode/playn/playn-hello-core-archetype/

# /sample/m2/snapshots/com/googlecode/forplay/forplay-hello-core-archetype/1.0-SNAPSHOT/
# /sample/m2/snapshots/com/googlecode/playn/playn-hello-core-archetype/1.0-SNAPSHOT/

# /sample/noise/noise/war/WEB-INF/
/sample/noise/noise/war/WEB-INF/lib
@@ -1,11 +1,11 @@
All contributors to Forplay must sign a CLA.
All contributors to Playn must sign a CLA.

What is a CLA?
----------------------------------------

A CLA (Contributor License Agreement) basically says that you own the
rights to any code you contribute, and that you give us permission to
use that code in Forplay. You maintain the copyright on that code.
use that code in Playn. You maintain the copyright on that code.

Where do I sign up?
----------------------------------------
4 README
@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -18,7 +18,7 @@
// Contents
//

Forplay is a cross-platform Java game development library. It requires Java 6 or higher.
Playn is a cross-platform Java game development library. It requires Java 6 or higher.
http://www.java.com/

//
@@ -3,6 +3,6 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry combineaccessrules="false" kind="src" path="/forplay"/>
<classpathentry combineaccessrules="false" kind="src" path="/playn"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>forplay-android</name>
<name>playn-android</name>
<comment></comment>
<projects>
</projects>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="forplay.android"
package="playn.android"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.WAKE_LOCK" />
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World!</string>
<string name="app_name">ForPlay</string>
<string name="app_name">PlayN</string>
</resources>
@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -11,9 +11,9 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import forplay.core.Analytics;
import playn.core.Analytics;

class AndroidAnalytics extends Analytics.AnalyticsImpl {

@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -13,9 +13,9 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import static forplay.core.ForPlay.log;
import static playn.core.PlayN.log;

import java.io.BufferedReader;
import java.io.IOException;
@@ -33,10 +33,10 @@
import android.os.AsyncTask;
import android.util.Log;
import android.view.WindowManager.LayoutParams;
import forplay.core.AbstractAssetManager;
import forplay.core.Image;
import forplay.core.ResourceCallback;
import forplay.core.Sound;
import playn.core.AbstractAssetManager;
import playn.core.Image;
import playn.core.ResourceCallback;
import playn.core.Sound;

public class AndroidAssetManager extends AbstractAssetManager {

@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import java.io.File;
import java.io.FileInputStream;
@@ -25,8 +25,8 @@

import android.media.MediaPlayer;
import android.media.MediaPlayer.OnBufferingUpdateListener;
import forplay.core.Audio;
import forplay.core.Sound;
import playn.core.Audio;
import playn.core.Sound;

class AndroidAudio implements Audio {

@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import java.util.LinkedList;

@@ -22,13 +22,13 @@
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.RectF;
import forplay.core.Asserts;
import forplay.core.Gradient;
import forplay.core.Image;
import forplay.core.Path;
import forplay.core.Pattern;
import playn.core.Asserts;
import playn.core.Gradient;
import playn.core.Image;
import playn.core.Path;
import playn.core.Pattern;

class AndroidCanvas implements forplay.core.Canvas {
class AndroidCanvas implements playn.core.Canvas {
private static Matrix m = new Matrix();
private static Rect rect = new Rect();
private static RectF rectf = new RectF();
@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -13,14 +13,14 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import forplay.core.Asserts;
import playn.core.Asserts;

import static forplay.core.ForPlay.graphics;
import forplay.core.Canvas;
import forplay.core.CanvasImage;
import forplay.core.CanvasLayer;
import static playn.core.PlayN.graphics;
import playn.core.Canvas;
import playn.core.CanvasImage;
import playn.core.CanvasLayer;

class AndroidCanvasLayer extends AndroidLayer implements CanvasLayer {

@@ -1,5 +1,5 @@
/**
* Copyright 2010 The ForPlay Authors
* Copyright 2010 The PlayN Authors
*
* 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
@@ -13,10 +13,10 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import android.graphics.Shader;
import forplay.core.Gradient;
import playn.core.Gradient;

class AndroidGradient implements Gradient {

@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -13,24 +13,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package forplay.android;
package playn.android;

import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.LinearGradient;
import android.graphics.RadialGradient;
import android.graphics.Shader.TileMode;
import android.util.DisplayMetrics;
import forplay.core.Asserts;
import forplay.core.CanvasImage;
import forplay.core.CanvasLayer;
import forplay.core.Gradient;
import forplay.core.Graphics;
import forplay.core.GroupLayer;
import forplay.core.Image;
import forplay.core.ImageLayer;
import forplay.core.Pattern;
import forplay.core.SurfaceLayer;
import playn.core.Asserts;
import playn.core.CanvasImage;
import playn.core.CanvasLayer;
import playn.core.Gradient;
import playn.core.Graphics;
import playn.core.GroupLayer;
import playn.core.Image;
import playn.core.ImageLayer;
import playn.core.Pattern;
import playn.core.SurfaceLayer;

class AndroidGraphics implements Graphics {

@@ -59,7 +59,7 @@ public Gradient createLinearGradient(float x0, float y0, float x1, float y1, int
return new AndroidGradient(gradient);
}

public forplay.core.Path createPath() {
public playn.core.Path createPath() {
return new AndroidPath();
}

@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -13,13 +13,13 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import forplay.core.Asserts;
import forplay.core.GroupLayer;
import forplay.core.GroupLayerImpl;
import forplay.core.Layer;
import forplay.core.ParentLayer;
import playn.core.Asserts;
import playn.core.GroupLayer;
import playn.core.GroupLayerImpl;
import playn.core.Layer;
import playn.core.ParentLayer;

class AndroidGroupLayer extends AndroidLayer implements GroupLayer, ParentLayer {

@@ -14,7 +14,7 @@
* limitations under the License.
*/

package forplay.android;
package playn.android;

import java.io.IOException;

@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -13,7 +13,7 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import java.lang.ref.SoftReference;
import java.util.ArrayList;
@@ -22,11 +22,11 @@
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.util.Log;
import forplay.core.Asserts;
import forplay.core.Canvas;
import forplay.core.CanvasImage;
import forplay.core.Image;
import forplay.core.ResourceCallback;
import playn.core.Asserts;
import playn.core.Canvas;
import playn.core.CanvasImage;
import playn.core.Image;
import playn.core.ResourceCallback;

class AndroidImage implements CanvasImage {

@@ -104,7 +104,7 @@ Bitmap getBitmap() {
if (bitmapRef != null) {
Bitmap bm = bitmapRef.get();
if (bm == null) {
Log.i("forplay", "Bitmap " + path + " fell out of memory");
Log.i("playn", "Bitmap " + path + " fell out of memory");
bitmapRef = new SoftReference<Bitmap>(
bm = ((AndroidAssetManager) AndroidPlatform.instance.assetManager()).doGetBitmap(path));
}
@@ -1,5 +1,5 @@
/**
* Copyright 2011 The ForPlay Authors
* Copyright 2011 The PlayN Authors
*
* 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
@@ -13,11 +13,11 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package forplay.android;
package playn.android;

import forplay.core.Asserts;
import forplay.core.Image;
import forplay.core.ImageLayer;
import playn.core.Asserts;
import playn.core.Image;
import playn.core.ImageLayer;

class AndroidImageLayer extends AndroidLayer implements ImageLayer {

Oops, something went wrong.

0 comments on commit c97ee9f

Please sign in to comment.