Android Open Source - RPGWorld Status






From Project

Back to project page RPGWorld.

License

The source code is released under:

MIT License

If you think the Android project RPGWorld 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

/**
 * Jun 6, 2013//from w  w  w .j ava2s. c o  m
 * Status.java
 * Daniel Pok
 * AP Java 6th
 */
package com.nokarateclass.rpgworld.characters;

import java.io.Serializable;


/**
 * @author poler_000
 *
 */
public class Status{

  /**
   * 
   */
  public final static int NO_ACTION = 0, PATHING = 1, ATTACKING = 2, TALKING = 3, INTERACTING = 4;
  public int mStatus; //what the character is doing now
  public Serializable mExtra; //anything else relevant to this, i.e. Locations, etc.
  public CharacterActor mTarget; //target of the character's current action
  public Status mFuture; //what to do when the current action is complete, TODO: THIS DOES NOT GET SAVED OR RESTORED IN ZONES
  
  public Status() {
    mStatus = 0;
    mTarget = null;
    mFuture = null;
  }
  
  public Status(int status){
    mStatus = status;
    mTarget = null;
    mFuture = null;
  }
  
  public Status(int status, CharacterActor target){
    mStatus = status;
    mTarget = target;
    mFuture = null;
  }
  
  public Status(int status, CharacterActor target, Status future){
    mStatus = status;
    mTarget = target;
    mFuture = future;
  }
  
  public Status(int status, CharacterActor target, int futureStatus, CharacterActor futureTarget){
    mStatus = status;
    mTarget = target;
    mFuture = new Status(futureStatus, futureTarget);
  }
  
  //TODO add functionality?
}




Java Source Code List

com.nokarateclass.rpgworld.Grid.java
com.nokarateclass.rpgworld.MapEditor.java
com.nokarateclass.rpgworld.backgrounds.BackgroundCharacter.java
com.nokarateclass.rpgworld.backgrounds.GrassBackground.java
com.nokarateclass.rpgworld.backgrounds.SandBackground.java
com.nokarateclass.rpgworld.characters.AndroidCharacter.java
com.nokarateclass.rpgworld.characters.CactusCharacter.java
com.nokarateclass.rpgworld.characters.CharacterActor.java
com.nokarateclass.rpgworld.characters.HeroCharacter.java
com.nokarateclass.rpgworld.characters.MonsterCharacter.java
com.nokarateclass.rpgworld.characters.Player.java
com.nokarateclass.rpgworld.characters.RockCharacter.java
com.nokarateclass.rpgworld.characters.Status.java
com.nokarateclass.rpgworld.characters.TreeCharacter.java
com.nokarateclass.rpgworld.editor.CharacterFactory.java
com.nokarateclass.rpgworld.editor.EditorGrid.java
com.nokarateclass.rpgworld.grid.BackgroundGrid.java
com.nokarateclass.rpgworld.grid.BeatTask.java
com.nokarateclass.rpgworld.grid.CharacterGrid.java
com.nokarateclass.rpgworld.grid.Location.java
com.nokarateclass.rpgworld.grid.MainCharacterGrid.java
com.nokarateclass.rpgworld.io.FileExporter.java
com.nokarateclass.rpgworld.io.FileIO.java
com.nokarateclass.rpgworld.io.FileImporter.java
com.nokarateclass.rpgworld.io.GridSerializer.java
com.nokarateclass.rpgworld.io.SettingsHolder.java
com.nokarateclass.rpgworld.ui.GridClickListener.java
com.nokarateclass.rpgworld.ui.ImageGridView.java
com.nokarateclass.rpgworld.world.Region.java
com.nokarateclass.rpgworld.world.World.java
com.nokarateclass.rpgworld.world.Zone.java