Tabnine Logo
Fluid
Code IndexAdd Tabnine to your IDE (free)

How to use
Fluid
in
com.artemis.annotations

Best Java code snippets using com.artemis.annotations.Fluid (Showing top 20 results out of 315)

origin: junkdog/artemis-odb

/**
 * @author Daan van Yperen
 */
@Fluid(swallowGettersWithParameters = true)
public class ParaGetter extends Component {
  public String custom( String a ) { return a; }
}

origin: junkdog/artemis-odb

public void apply(Fluid fluid) {
  this.swallowGettersWithParameters = fluid.swallowGettersWithParameters();
  this.excludeFromGeneration = fluid.exclude();
}
origin: junkdog/artemis-odb

/** Create descriptor for passed type. */
public static ComponentDescriptor create(Class<? extends Component> type, FluidGeneratorPreferences globalPreferences) {
  String methodPrefix = Strings.decapitalizeString(type.getSimpleName());
  String name = type.getSimpleName();
  FluidGeneratorPreferences preferences = new FluidGeneratorPreferences();
  preferences.mirror(globalPreferences);
  // @todo make sure this is processed from least to most pressing.
  for (Annotation annotation : ExtendedTypeReflection.getAllAnnotations(type)) {
    if (annotation.annotationType().equals(Fluid.class)) {
      final Fluid fluid = (Fluid) annotation;
      if (!fluid.name().isEmpty()) {
        methodPrefix = fluid.name();
        name = Strings.capitalizeString(fluid.name());
      }
      preferences.apply(fluid);
    }
  }
  return new ComponentDescriptor(type, methodPrefix, name, preferences );
}
origin: net.onedaybeard.artemis/artemis-fluid-core

/** Create descriptor for passed type. */
public static ComponentDescriptor create(Class<? extends Component> type, FluidGeneratorPreferences globalPreferences) {
  String methodPrefix = Strings.decapitalizeString(type.getSimpleName());
  String name = type.getSimpleName();
  FluidGeneratorPreferences preferences = new FluidGeneratorPreferences();
  preferences.mirror(globalPreferences);
  // @todo make sure this is processed from least to most pressing.
  for (Annotation annotation : ExtendedTypeReflection.getAllAnnotations(type)) {
    if (annotation.annotationType().equals(Fluid.class)) {
      final Fluid fluid = (Fluid) annotation;
      if (!fluid.name().isEmpty()) {
        methodPrefix = fluid.name();
        name = Strings.capitalizeString(fluid.name());
      }
      preferences.apply(fluid);
    }
  }
  return new ComponentDescriptor(type, methodPrefix, name, preferences );
}
origin: DaanVanYperen/artemis-odb-contrib

/**
 * Blueprint for extended component.
 *
 * Rich components:
 * - Are pooled.
 * - Can mirror state of another component.
 *
 * @author Daan van Yperen
 */
@Fluid(swallowGettersWithParameters = true)
public abstract class ExtendedComponent<T extends ExtendedComponent> extends PooledComponent
    implements Serializable, Mirrorable<T> {
}

origin: net.onedaybeard.artemis/artemis-fluid-core

public void apply(Fluid fluid) {
  this.swallowGettersWithParameters = fluid.swallowGettersWithParameters();
  this.excludeFromGeneration = fluid.exclude();
}
origin: junkdog/artemis-odb

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
public class Excluded extends Component {
}

origin: junkdog/artemis-odb

/**
 * @author Daan van Yperen
 */
@Fluid(name = "rename2")
public class Rename extends Component {
}

origin: net.mostlyoriginal.artemis-odb/contrib-core

/**
 * Blueprint for extended component.
 *
 * Rich components:
 * - Are pooled.
 * - Can mirror state of another component.
 *
 * @author Daan van Yperen
 */
@Fluid(swallowGettersWithParameters = true)
public abstract class ExtendedComponent<T extends ExtendedComponent> extends PooledComponent
    implements Serializable, Mirrorable<T> {
}

origin: net.mostlyoriginal.artemis-odb/contrib-jam

@Fluid(swallowGettersWithParameters = true)
public class Physics extends Component implements Serializable {
origin: net.mostlyoriginal.artemis-odb/contrib-plugin-operations

@Fluid(name = "script")
public class Schedule extends PooledComponent {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(swallowGettersWithParameters = true)
public class Physics extends Component implements Serializable {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(name = "script")
public class Schedule extends PooledComponent {
origin: net.mostlyoriginal.artemis-odb/contrib-jam

@Fluid(swallowGettersWithParameters=true)
public class Tint extends ExtendedComponent<Tint> implements Tweenable<Tint> {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(swallowGettersWithParameters=true)
public class Tint extends ExtendedComponent<Tint> implements Tweenable<Tint> {
origin: net.mostlyoriginal.artemis-odb/contrib-jam

@Fluid(swallowGettersWithParameters = true)
@Deprecated
public class Anim extends Component {
origin: DaanVanYperen/artemis-odb-contrib

@Fluid(swallowGettersWithParameters = true)
@Deprecated
public class Anim extends Component {
origin: net.mostlyoriginal.artemis-odb/contrib-jam

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
@Transient
public class AnimationAsset extends PooledComponent {

  public com.badlogic.gdx.graphics.g2d.Animation<TextureRegion> asset;

  @Override
  protected void reset() {
    asset = null;
  }
}

origin: net.mostlyoriginal.artemis-odb/contrib-jam

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
@Transient
public class SpriteAsset extends PooledComponent {

  public Texture asset;

  @Override
  protected void reset() {
    asset = null;
  }
}

origin: DaanVanYperen/artemis-odb-contrib

/**
 * @author Daan van Yperen
 */
@Fluid(exclude = true)
@Transient
public class AnimationAsset extends PooledComponent {

  public com.badlogic.gdx.graphics.g2d.Animation<TextureRegion> asset;

  @Override
  protected void reset() {
    asset = null;
  }
}

com.artemis.annotationsFluid

Most used methods

  • <init>
  • exclude
  • name
  • swallowGettersWithParameters

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JOptionPane (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now