Check-in [e28836423f]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Class work.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e28836423fd9be4897c73e0da9e406396ac113e4
User & Date: stephanie.gawroriski 2019-07-01 16:44:21
Context
2019-07-01
16:59
Correct compilation error. check-in: 5c61c02674 user: stephanie.gawroriski tags: trunk
16:44
Class work. check-in: e28836423f user: stephanie.gawroriski tags: trunk
16:32
Add base for game classes and such. check-in: 111cd6b4fd user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/mids/squirrel-quarrel/dev/shadowtail/squirrelquarrel/GameBuilder.java.

5
6
7
8
9
10
11



12
13
14
15
16
17
18









19
20



















// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package dev.shadowtail.squirrelquarrel;




/**
 * This is used to build games which can then be run and such.
 *
 * @since 2019/07/01
 */
public final class GameBuilder
{









}



























>
>
>







>
>
>
>
>
>
>
>
>
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// ---------------------------------------------------------------------------
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package dev.shadowtail.squirrelquarrel;

import java.io.InputStream;
import java.io.IOException;

/**
 * This is used to build games which can then be run and such.
 *
 * @since 2019/07/01
 */
public final class GameBuilder
{
	/**
	 * Builds the actual game.
	 *
	 * @return The resulting game.
	 * @since 2019/07/01
	 */
	public final Game build()
	{
		throw new todo.TODO();
	}
	
	/**
	 * Builds and plays back a game from a replay.
	 *
	 * @param __in The input stream.
	 * @return The resulting game.
	 * @throws IOException On read/write errors.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/07/01
	 */
	public static final Game fromReplay(InputStream __in)
		throws IOException, NullPointerException
	{
		if (__in == null)
			throws NullPointerException("NARG");
		
		throw new todo.TODO();
	}
}

Changes to runt/mids/squirrel-quarrel/dev/shadowtail/squirrelquarrel/GameInterface.java.

18
19
20
21
22
23
24























25
26
27
28
29
30
31
32
33
34
 * and such.
 *
 * @since 2019/07/01
 */
public final class GameInterface
	extends Canvas
{























	/**
	 * {@inheritDoc}
	 * @since 2019/07/01
	 */
	@Override
	protected final void paint(Graphics __g)
	{
	}
}








>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>










18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 * and such.
 *
 * @since 2019/07/01
 */
public final class GameInterface
	extends Canvas
{
	/** The game this will be drawing and interacting with. */
	protected final Game game;
	
	/**
	 * Initializes the game interface.
	 *
	 * @param __g The game to interact with.
	 * @throws NullPointerException On null arguments.
	 * @since 2019/07/01
	 */
	public GameInterface(Game __g)
		throws NullPointerException
	{
		if (__g == null)
			throw new NullPointerException("NARG");
		
		// Initialize variables
		this.game = __g;
		
		// Setup canvas view and such
		this.setTitle("Squirrel Quarrel");
	}
	
	/**
	 * {@inheritDoc}
	 * @since 2019/07/01
	 */
	@Override
	protected final void paint(Graphics __g)
	{
	}
}

Changes to runt/mids/squirrel-quarrel/dev/shadowtail/squirrelquarrel/MainMidlet.java.

34
35
36
37
38
39
40






41
42
43
44
	 * {@inheritDoc}
	 * @since 2019/07/01
	 */
	@Override
	protected void startApp()
		throws MIDletStateChangeException
	{






		throw new todo.TODO();
	}
}








>
>
>
>
>
>




34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
	 * {@inheritDoc}
	 * @since 2019/07/01
	 */
	@Override
	protected void startApp()
		throws MIDletStateChangeException
	{
		// Setup base game builder
		GameBuilder gb = new GameBuilder();
		
		// Setup and show the game interface
		GameInterface gi = new GameInterface(gb.build());
		
		throw new todo.TODO();
	}
}

Name change from runt/mids/squirrel-quarrel/dev/shadowtail/squirrelquarrel/DemoThinker.java to runt/mids/squirrel-quarrel/dev/shadowtail/squirrelquarrel/ReplayThinker.java.

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package dev.shadowtail.squirrelquarrel;

/**
 * This is a thinker which plays back from a demo.
 *
 * @since 2019/07/01
 */
public final class DemoThinker
	implements Thinker
{
}








|



|




6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SquirrelJME is under the GNU General Public License v3+, or later.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package dev.shadowtail.squirrelquarrel;

/**
 * This is a thinker which plays back from a replay or demo.
 *
 * @since 2019/07/01
 */
public final class ReplayThinker
	implements Thinker
{
}