public class

ConnectFour

extends ShapeScreen
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ sofia.app.Screen
             ↳ sofia.app.ShapeScreen
               ↳ sofia.demos.ConnectFour

Class Overview

An implementation of the Connect Four board game. The pieces bounce when they land in the slots!

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
ConnectFour()
Public Methods
void initialize()
Called when the screen has been created and is about to be displayed on the device.
void onTouchUp(MotionEvent e)
Called when a finger is lifted up from the screen.
Protected Methods
void afterInitialize()
Called once the screen has been created and made visible.
[Expand]
Inherited Methods
From class sofia.app.ShapeScreen
From class sofia.app.Screen
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface sofia.app.ScreenMethods

Public Constructors

public ConnectFour ()

Public Methods

public void initialize ()

Called when the screen has been created and is about to be displayed on the device.

public void onTouchUp (MotionEvent e)

Called when a finger is lifted up from the screen.

Parameters
e an object that describes the event

Protected Methods

protected void afterInitialize ()

Called once the screen has been created and made visible. Most users will not need to override this method; it is provided so that Sofia's own Screen subclasses can do additional initialization after the user's own initialize() method has executed, if necessary.