All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tyme.culture.Beast Maven / Gradle / Ivy

There is a newer version: 1.1.7
Show newest version
package com.tyme.culture;

import com.tyme.LoopTyme;

/**
 * 神兽
 *
 * @author 6tail
 */
public class Beast extends LoopTyme {

  public static final String[] NAMES = {"青龙", "玄武", "白虎", "朱雀"};

  public Beast(int index) {
    super(NAMES, index);
  }

  public Beast(String name) {
    super(NAMES, name);
  }

  public static Beast fromIndex(int index) {
    return new Beast(index);
  }

  public static Beast fromName(String name) {
    return new Beast(name);
  }

  public Beast next(int n) {
    return fromIndex(nextIndex(n));
  }

  /**
   * 宫
   *
   * @return 宫
   */
  public Zone getZone() {
    return Zone.fromIndex(index);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy