Android Open Source - RPG-Kit-Android O C Game Engine






From Project

Back to project page RPG-Kit-Android.

License

The source code is released under:

Apache License

If you think the Android project RPG-Kit-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * Philip Regan/*  w w  w.  jav  a 2  s  .  co  m*/
 * http://www.oatmealandcoffee.com
 * 
 * 
 * OCGameEngine
 * 
 * This is where the fate of the player is decided relative to the Accomplishments
 * in a Location. 
 * 
 * for each task
 * * get task qualifications
 * * get player info
 * * qualify player
 * * calculate attempt
 * * apply result
 * next task
 */
package net.cs76.projects.student;

import android.content.Context;

/**
 * @author philipr
 *
 */
public class OCGameEngine extends OCDbController {

  /**
   * Auto-generated constructor stub
   * @param context
   */
  public OCGameEngine(Context context) {
    super(context);
    // Auto-generated constructor stub
  }
  
  /**
   * The root method for all game play.
   * @param playerId The player
   * @param taskIds The tasks the player is to attempt to complete in full
   */
  public boolean doTask(int playerId, int[] taskIds) {
    
    boolean playerWon = true;
    // TODO See header comments for workflow
    return playerWon;
  }

}




Java Source Code List

net.cs76.projects.student.OCCoreActivity.java
net.cs76.projects.student.OCDbController.java
net.cs76.projects.student.OCEquipmentSelectionActivity.java
net.cs76.projects.student.OCGameComponentsEditActivity.java
net.cs76.projects.student.OCGameEngine.java
net.cs76.projects.student.OCGameEntryDbController.java
net.cs76.projects.student.OCGameEntry.java
net.cs76.projects.student.OCGameInformationEditActivity.java
net.cs76.projects.student.OCGameObjectSelectionActivity.java
net.cs76.projects.student.OCGamePlayLocationActivity.java
net.cs76.projects.student.OCGameSelectionActivity.java
net.cs76.projects.student.OCPlayerInformationEditActivity.java
net.cs76.projects.student.OCTaskSelectionActivity.java
net.cs76.projects.student.RPGKitActivity.java