text
stringlengths
3
1.18M
package UI; import com.badlogic.gdx.graphics.Texture; public class TouchDraggedControlButton extends TouchControlButton { private boolean _touchInside; private float _scaleX; private float _scaleY; private float _prevPosX; private float _prevPosY; public TouchDraggedControlButton(float containerW, float c...
package xmlDecoder; import java.io.IOException; import java.io.StringReader; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.helpers.Def...
package xmlDecoder; /** * @author Nacho * * Class Brieff: Enum that describes the different types of XML that are gonna be parsed * **/ public enum XMLIDs { MAIN_MENU, LEVEL; }
package errorHandling; public class Assert { public static void ASSERT(Object statement, ErrorMessages errorMessage) { if (statement == null ) { System.out.println(errorMessage.getKey()); throw new Error(errorMessage.getKey()); } } public static void ASSERT(Boolean statement, ErrorM...
package errorHandling; public enum ErrorMessages { NO_RESOURCE_FOUND("no resource found"), NO_RESOURCE_GROUP_FOUND("no resource group found"), XML_HANDLER_IS_NULL("xml handler is invalid"), OBJECT_IS_NULL("object is null"), NO_NOTIFICATIONS_DISPATCHER_FOUND("No dispatcher for that id was found, please set...
package Interfaces; /** * @author Bonett * * Class Brieff: Iterface that represent any behaviour */ public interface IBehaviour { public void execute(float fps); public void reset(); }
package Interfaces; /** * @author Nacho * * Class Brieff: This abstract Class represents any resource to be loaded (Textures, sounds, etc..) * Abstract Class * **/ public abstract class Resource { protected boolean _persist; protected int _Id; protected Object _resource; protected String _path;...
package Interfaces; /** * @author Bonett * * Class Brieff: Interface that defines what a model of a renderable objet shoud have */ public interface IEntityModel { public void init(); public void update(float deltaTime); public void destroy(); public void setBehaviour(IBehaviour behav); publi...
package Interfaces.abstractClasses; /** * @author Nacho * * Class Brieff: This abstract Class represents any resource to be loaded (Textures, sounds, etc..) * Abstract Class * **/ public abstract class Resource { protected boolean _persist; protected int _Id; protected Object _resource; protect...
/** * */ package Interfaces.abstractClasses; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import StateMachine.StateMachine; /** * @author Bonett * */ public abstract class State { protected StateMachine fsm; protected int name; public abstract void init(); public abstract void u...
package Interfaces; public interface IControlUI { void receiveTouchPosition(float x, float y, int pointer); void doAction(String buttonName); void doContinuosAction(String buttonName); void stoppedContinuosAction(String buttonName); }
package Interfaces; import com.badlogic.gdx.graphics.g2d.Sprite; /** * @author Bonett * */ public interface IEntityView { public void init(); public void destroy(); public Sprite getSprite(); }
package Utils; public class DisplayUtils { }
package Sound; public enum SoundID { SOUND_PIRANHA_BITE, SOUND_BLOOD_SPLAT, SOUND_PLAYER_DIES, SOUND_DOG_BARK, SOUND_GRAB_DOG, MUSIC_MAIN_MENU, MUSIC_GAME_OVER, MUSIC_WIN; }
package Sound; import java.util.HashMap; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.utils.Disposable; public class SoundManager { private static SoundManager instance = null; private Has...
package interfaces; import NotificationTypes.NotificationType; public interface IObserver { void receiveNotification(NotificationType notificationType, Object additionalData); }
package interfaces; import actors.view.ActorView; public interface IWeapon { boolean shoot(); void stopShooting(); ActorView getCurrentBullet(); void update(float fps); void destroy(); }
package interfaces; import Notifications.NotificationsDispatcherIDs; public interface INotificationDispatcher { long dispatcherID(); }
package interfaces; import actors.view.ActorView; public interface ICollisionable { ActorView getCollisionActor(); int getCollisionRadius(); boolean avaliableForCollision(); void setAvaliableForCollision(boolean value); boolean isMainCollider(); void onCollide(ActorView againstEnt); }
package game; import resourceHandler.ResourceHandler; import Screens.GameMenuScreen; import Screens.GameScreen; import Screens.InGameScreen; import Sound.SoundManager; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; ...
package world.enemyWave; import java.util.ArrayList; import actors.view.EntityTypes; public class EnemyWave { private int enemyAmount; private float timeBetweenEnemyAppear; public ArrayList<String> types; private boolean mustRepeat; private int repeat; private int resetValueEnemyAmount; pub...
package world; import Interfaces.IEntityModel; import NotificationTypes.NotificationType; import Notifications.NotificationManager; import Notifications.NotificationsDispatcherIDs; import interfaces.INotificationDispatcher; import java.util.ArrayList; import java.util.Date; import java.util.Vector; i...
package world; import interfaces.IObserver; import java.util.ArrayList; import java.util.Date; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import Collision.CollisionManager; import NotificationTypes.Noti...
package Screens; import interfaces.IObserver; import NotificationTypes.NotificationType; import Notifications.NotificationManager; import UI.GameOverGUILayer; import UI.WinGUILayer; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.g2d.SpriteBatch; public class WinScreen ext...
package Screens; import interfaces.INotificationDispatcher; import interfaces.IObserver; import Collision.CollisionManager; import NotificationTypes.NotificationType; import Notifications.NotificationManager; import Sound.SoundManager; import UI.GUILayer; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; imp...
package Screens; import interfaces.IObserver; import NotificationTypes.NotificationType; import Notifications.NotificationManager; import Sound.SoundID; import Sound.SoundManager; import UI.GUILayer; import UI.MainMenuGUI; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; impo...
package Screens; import interfaces.IObserver; import NotificationTypes.NotificationType; import Notifications.NotificationManager; import Sound.SoundID; import Sound.SoundManager; import UI.GameOverGUILayer; import UI.MainMenuGUI; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.grap...
package Screens; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.GL10; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; public class GameScreen implements Screen { protected SpriteBatch ...
package Collision; /** * Metodo para detectar la colision * * entidades vs balas -- Itero por todas las entidades contrarrestandolas contra las balas, primero me fijo si la distancia entre ambos es menor a N, * si es asi, empiezo a hacer el calculo de bounding circle, en caso de q se overlapeen los circulos, me f...
package UI; import java.util.ArrayList; import java.util.Date; import interfaces.INotificationDispatcher; import interfaces.IObserver; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import actors.Collectables.Collectable...
package UI; import java.util.Date; import interfaces.INotificationDispatcher; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import Interfaces.IControlUI; import NotificationTypes.NotificationType; import Notifications.No...
package UI; import java.util.Date; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import interfaces.INotificationDispatcher; import Interfaces.IControlUI; import NotificationTypes.NotificationType; import Notifications.N...
package UI; import java.util.Date; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import interfaces.INotificationDispatcher; import Interfaces.IControlUI; import NotificationTypes.NotificationType; import Notifications.N...
package states; public enum StateNames { IN_GAME_STATE(0); private int name; private StateNames(int name) { this.name = name; } public int getName() { return name; } }
package states; import java.io.InputStream; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL10; import com.badlogic.gdx.graphics.Mesh; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g3d.loaders.ModelLoaderOld; impo...
package com.game; import game.SpaceShooterGame; import android.os.Bundle; import com.badlogic.gdx.backends.android.AndroidApplication; public class SpaceShooterActivity extends AndroidApplication { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState...
package actors.model; import java.util.Date; import com.badlogic.gdx.Gdx; import actors.Weapons.BasicWeapon; import interfaces.INotificationDispatcher; import interfaces.IWeapon; import NotificationTypes.NotificationType; import Notifications.NotificationManager; import Notifications.NotificationsDispatcherIDs; pu...
/** * @author Bonett * * Class Brieff: Actor data model representation */ package actors.model; import interfaces.IObserver; import java.util.Vector; import com.badlogic.gdx.Gdx; import Interfaces.IBehaviour; import Interfaces.IEntityModel; import NotificationTypes.NotificationType; import Notif...
package actors.Weapons; import interfaces.IWeapon; import java.util.Vector; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.scenes.scene2d.Actor...
package actors.Weapons.Bullets; import world.WorldView; import Interfaces.IBehaviour; import Interfaces.IEntityView; import actors.Behaviours.BasicBulletBehavior; import actors.Weapons.BasicWeapon; import actors.model.ActorModel; import actors.view.ActorView; import com.badlogic.gdx.graphics.g2d.TextureRegion; publ...
/** * @author Bonett * * Class Brieff: Behaviour that moves an entity the an accelerometer */ package actors.Behaviours; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.g2d.Sprite; import Interfaces.IBehaviour; import Interfaces.IEntityView; public class MoveWithAccelerometerBehavi...
package actors.Behaviours.EnemyBehaviors; import com.badlogic.gdx.graphics.g2d.Sprite; import Interfaces.IBehaviour; import Interfaces.IEntityView; public class WaveMovementBehavior implements IBehaviour { private float _xPos; private float _yPos; private Sprite _actorSprite; private double _angle; private flo...
package actors.view; import java.util.Date; import interfaces.INotificationDispatcher; import world.WorldView; import Animation.AnimationIDS; import NotificationTypes.NotificationType; import Notifications.NotificationManager; import Notifications.NotificationsDispatcherIDs; import actors.model.ActorModel; import co...
package actors.view.Enemies; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import world.WorldView; import com.badlogic.gdx.graphics.g2d.TextureRegion; import Animation.AnimationHandler; import Animation.AnimationIDS; im...
/** * @author Bonett * * Class Brieff: Actor view representation */ package actors.view; import world.WorldView; import interfaces.ICollisionable; import Animation.AnimationHandler; import Interfaces.IBehaviour; import Interfaces.IEntityView; import actors.model.ActorModel; import com.badlogic.g...
package actors.view; public enum EntityTypes { ENTITY_TYPE_BASIC_ENEMY, PUPPY_COLLECTABLE; }
package actors.view; import java.util.Date; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import interfaces.INotificationDispatcher; import interfaces.IObserver; import world.WorldView; import Animation.AnimationHandl...
package actors.view; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import actors.Collectables.Collectable; import actors.view.Enemies.BasicEnemy; import com.badlogic.gdx.graphics.g2d.TextureRegion; import world.WorldVi...
package actors.Collectables; import java.util.Date; import resourceHandler.GroupID; import resourceHandler.ResourceHandler; import resourceTypes.ResourceIDs; import resourceTypes.TextureResource; import interfaces.INotificationDispatcher; import world.WorldView; import com.badlogic.gdx.Gdx; import com.badlogic.gdx....
package Notifications; import interfaces.INotificationDispatcher; import interfaces.IObserver; import java.util.Date; import java.util.HashMap; import java.util.Set; import java.util.Vector; import NotificationTypes.NotificationType; import errorHandling.Assert; import errorHandling.ErrorMessages; public class No...
package Notifications; public enum NotificationsDispatcherIDs { PLAYER_MODEL, PLAYER_VIEW, WORLD_MODEL, ENEMY_VIEW, COLLECTABLE_VIEW, GUI; }
package Animation; public enum AnimationIDS { PLAYER_IDLE, PLAYER_MOVE, PLAYER_TURN, PLAYER_DIE, ENEMY_PIRANHA, ENEMY_PIRANHA_DIES, COLLECTABLE_PUPPY_FALLING, COLLECTABLE_PUPPY_DIE, COLLECTABLE_PUPPY_COLLECTED; }
package Animation; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Animation; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import co...
package xmlHandlers; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import world.WorldModel; /** * @author Bonett * * Class Brieff: This Class handles the decodification of a Level characteristics (corresponding assets, enemy location, etc etc) */ public class WorldHandler ...
package xmlHandlers; public enum NodeNames { WORLD("world"), ACTORS("actors"), ENEMIES("enemies"), WAVES("waves"); private String _key; private NodeNames(String node) { _key = node; } public String getKey() { return _key; } }
package xmlHandlers; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; /** * @author Bonett * * Class Brieff: This Class handles the decodification of Main Menu characteristics (corresponding assets, button location, etc etc) */ public class MainMenuHandler extends DefaultHandler...
/* Copyright 2010 - 2011 Kwok Ho Yin and Jonathan Gonzalez (jonathan@jonbaraq.eu) 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...
/* Copyright 2010 Kwok Ho Yin 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 ...
/* Copyright 2010 Kwok Ho Yin 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 ...
/* Copyright 2010 Kwok Ho Yin 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 ...
/* Copyright 2010 - 2011 Kwok Ho Yin 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 ...
/* Copyright 2010 Kwok Ho Yin 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 ...
/* Copyright 2010 - 2011 Kwok Ho Yin 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 ...
/* Copyright 2010 Kwok Ho Yin 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 ...
/* Copyright 2010 - 2011 Kwok Ho Yin 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 ...
/* Copyright 2010 - 2011 Kwok Ho Yin and and Jonathan Gonzalez (jonathan@jonbaraq.eu) 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...
/* Copyright 2010 Kwok Ho Yin 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 ...
/* Copyright 2010 - 2011 Kwok Ho Yin and Jonathan Gonzalez (jonathan@jonbaraq.eu) 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...
/* Copyright 2010 - 2011 Kwok Ho Yin 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 ...
/* Copyright 2010 - 2011 Kwok Ho Yin 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * Copyright 2011 Scribe Hwang * * 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 t...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * Copyright 2011 Scribe Hwang * * 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 t...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
package com.kq.xtoolkit.view; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.AttributeSet; import android.view.GestureDetector; import android.view.GestureDetector.OnGestureListener; import a...
package com.kq.xtoolkit; import android.app.Application; import android.view.WindowManager; public class XToolKitApplication extends Application { private WindowManager.LayoutParams ballParams; private WindowManager.LayoutParams panelParams; public XToolKitApplication() { ballParams = new Wind...
package com.kq.xtoolkit; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; public class BootReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { SharedPref...
package com.kq.xtoolkit; import android.animation.Animator; import android.animation.Animator.AnimatorListener; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.os.AsyncTask; ...
/* * Copyright (C) 2008 The Android Open Source Project * * 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 app...
package com.kq.xtoolkit.utils; import android.content.Context; import android.content.pm.PackageManager; import android.hardware.Camera; import android.os.Vibrator; import android.util.Log; import android.view.Display; import android.view.WindowManager; public class XUtils { public final static boolean DEBUG = fa...
package com.kq.xtoolkit; import android.animation.Animator; import android.animation.Animator.AnimatorListener; import android.animation.AnimatorSet; import android.animation.ValueAnimator; import android.animation.ValueAnimator.AnimatorUpdateListener; import android.app.Service; import android.content.Context; impor...
/** Automatically generated file. DO NOT MODIFY */ package com.example.svntest; public final class BuildConfig { public final static boolean DEBUG = true; }