Skip to content

Instantly share code, notes, and snippets.

class WorldMap
{
public Tile[,] worldTiles = new Tile[150, 150];
/// <summary>
/// Check if the given tile is owned by the given player
/// </summary>
/// <param name="x">The x co-ordinate of the tile</param>
/// <param name="y">The y co-ordinate of the tile</param>
/// <param name="playerId">The id of the player</param>
class Tile
{
/// <summary>
/// The id of the player who owns this tile, if it is owned. -1 means no one 'owns' it
/// </summary>
public int ownedPlayerId = -1;
/// <summary>
/// The id of the player whose path contains this node. -1 means not in a path
/// </summary>
public int pathPlayerId = -1;
package com.company;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
import org.lwjgl.input.Keyboard;
public class QuadExample {
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>