Android Open Source - wannabe Grid






From Project

Back to project page wannabe.

License

The source code is released under:

MIT License

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

// Copyright 2013 Patrick Forhan.
package wannabe.grid;
//from  w w w.jav a2s  .  co  m
import wannabe.Voxel;

/** A collection of {@link Voxel}s. */
public interface Grid extends Iterable<Voxel> {
  /** Implementations may reuse the same instance. */
  Grid subGrid(int x, int y, int width, int height);

  /** Returns {@code true} if the specified voxel was added. */
  boolean add(Voxel v);

  /** Returns {@code true} if the specified voxel was removed. */
  boolean remove(Voxel v);

  /** Number of Voxels this grid contains. */
  int size();

  /**
   * Returns an immutable version of this grid that is optimized for rendering since
   * it can assume it has no changing voxels.
   */
  Grid unmodifyableGrid();
}




Java Source Code List

android.util.ArrayUtils.java
android.util.SparseArray.java
android.util.SparseIntArray.java
wannabe.Camera.java
wannabe.Position.java
wannabe.Rendered.java
wannabe.UI.java
wannabe.Voxel.java
wannabe.android.MainActivity.java
wannabe.grid.FixedGrid.java
wannabe.grid.Grid.java
wannabe.grid.SimpleGrid.java
wannabe.projection.Flat.java
wannabe.projection.Isometric.java
wannabe.projection.Projection.java
wannabe.projection.Projections.java
wannabe.projection.PseudoPerspective.java
wannabe.swing.SettingsPanel.java
wannabe.swing.SwingWannabe.java
wannabe.swing.WannabePanel.java
wannabe.util.SampleGrids.java
wannabe.util.UIs.java