public class CardGame extends GameGrid
(0,0) (1000,0) (getVirtualPgWidth(),0)
o--------------o-------o
| | |
| | |
| Card |Control|
| Area |Area |
| | |
| | |
o--------------o-------o
(0,1000) (1000,1000) (getVirtualPgWidth(),1000)
(0,0) (1000,0)
o--------------o
| |
| |
| Card |
| Area |
| |
| |
(0,1000) o--------------o (1000,1000)
| Control |
| Area |
o--------------o
(0, getVirtualPgHeight()) (1000, getVirtualPgHeight())
Modifier and Type | Class and Description |
---|---|
static class |
CardGame.BoardType
Enumeration that defines the screen layout.
|
GameGrid.CellZoom, GameGrid.SysInfo, GameGrid.WindowZoom
BLACK, BLUE, CYAN, DKGRAY, GRAY, GREEN, KILLPROCESS, LANDSCAPE, LTGRAY, MAGENTA, monitor, myGameGrid, PORTRAIT, RED, REPORT, RESTART, TRANSPARENT, WHITE, YELLOW
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_NOT_FOREGROUND, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, TELEPHONY_SERVICE, UI_MODE_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
Constructor and Description |
---|
CardGame(int boardColor,
int borderColor,
CardGame.BoardType boardType,
GameGrid.WindowZoom windowZoom)
Constructs and shows a game grid window of given BoardType layout
with given border and background color.
|
Modifier and Type | Method and Description |
---|---|
int |
getBoardSize()
Returns the (real) size of the square card playground in pixel units.
|
CardGame.BoardType |
getBoardType()
Returns the current BoardType enumeration.
|
act, actAll, addActListener, addActor, addActor, addActor, addActorNoRefresh, addActorNoRefresh, addFlingListener, addMultiTouchListener, addNavigationListener, addOrientationListener, addSoftButton, addSoftButtonListener, addStatusBar, addStatusBar, addTouchListener, cellZoom, copyBinary, createMediaPlayer, createTileMap, delay, doPause, doReset, doRun, doStep, enableKill, enumerateSensors, enumerateSensorSpecs, fail, fail, getActors, getActors, getActorsAt, getActorsAt, getAppName, getAudioVolume, getBg, getBgImagePath, getBgImagePos, getBgImagePosX, getBgImagePosY, getCanvas, getCellSize, getContext, getDiagonalLocations, getEmptyLocations, getFrameBuffer, getGridColor, getImage, getInstalledApps, getLineLocations, getNbCycles, getNbHorzCells, getNbHorzPix, getNbVertCells, getNbVertPix, getNumberOfActors, getNumberOfActors, getNumberOfActorsAt, getNumberOfActorsAt, getOccupiedLocations, getOneActor, getOneActorAt, getOneActorAt, getPaintOrderList, getPaintOrderList, getPanel, getPanel, getPanel, getParams, getPgHeight, getPgWidth, getRandomDirection, getRandomEmptyLocation, getRandomLocation, getRotation, getScreenOrientation, getScreenResolution, getScreenRotation, getSimulationPeriod, getTileMap, getTime, getTouchedActors, getTouchLocation, getTouchPosition, getUl, getUlx, getUly, getVersion, getVibrator, getView, getVirtualPgHeight, getVirtualPgWidth, getZoomFactor, isActorColliding, isAtBorder, isEmpty, isInGrid, isMainAlive, isMultiTouchSupported, isOrientationTablet, isRefreshEnabled, isRunning, isTileColliding, killProcess, notifyCreate, onCompletion, onConfigurationChanged, onKeyDown, onKeyLongPress, onKeyUp, openDrawableResource, openRawResource, pixelToVirtual, playSound, playSound, playTone, refresh, removeActor, removeActors, removeActorsAt, removeActorsAt, removeAllActors, removeFlingListener, removeTouchListener, requestBluetoothDiscoverability, requestBluetoothEnable, requestDouble, requestDouble, requestFloat, requestFloat, requestInt, requestInt, requestLong, requestLong, requestString, requestString, reset, reverseSceneOrder, sendSMS, setActEnabled, setActOrder, setActorOnBottom, setActorOnTop, setBgImagePath, setBgImagePos, setBgImagePosX, setBgImagePosY, setBorderColor, setCleanupEnabled, setGridColor, setMultiTouchEnabled, setNavigationNotifications, setNbRotSprites, setPaintOrder, setRefreshEnabled, setSceneOrder, setScreenOrientation, setSimulationPeriod, setSoftButtonVisible, setTitleText, setTitleText, setTitleText, setTouchEnabled, setWakeLockEnabled, setZoomFactor, shiftSceneOrder, showToast, showToast, showToast, showToast, superOnPause, toLocation, toLocation, toLocationInGrid, toLocationInGrid, toPoint, virtualToPixel, windowZoom
addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchKeyEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, finish, finishActivity, finishActivityFromChild, finishFromChild, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getInstanceCount, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLocalClassName, getMenuInflater, getParent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, getWindow, getWindowManager, hasWindowFocus, isChild, isFinishing, isTaskRoot, managedQuery, moveTaskToBack, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onDetachedFromWindow, onKeyMultiple, onLowMemory, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRetainNonConfigurationInstance, onSearchRequested, onTouchEvent, onTrackballEvent, onUserInteraction, onWindowAttributesChanged, onWindowFocusChanged, openContextMenu, openOptionsMenu, overridePendingTransition, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setIntent, setPersistent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, showDialog, showDialog, startActivity, startActivityForResult, startActivityFromChild, startActivityIfNeeded, startIntentSender, startIntentSenderForResult, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
public CardGame(int boardColor, int borderColor, CardGame.BoardType boardType, GameGrid.WindowZoom windowZoom)
boardColor
- the background color of the card boardborderColor
- the color a surrounding border (Color.TRANSPARENT for no border)boardType
- of of the enumerations of enum BoardTypewindowZoom
- a WindowZoom reference to define the zoom factor. Use
windowZoom(int windowSize) to create it; if null, the images are not zoomedpublic int getBoardSize()
public CardGame.BoardType getBoardType()