Skip to content

Commit

Permalink
Merge pull request #153 from felipefcm/family-system-getter
Browse files Browse the repository at this point in the history
Added getter methods for Family in some built-in systems
  • Loading branch information
dsaltares committed Mar 31, 2015
2 parents 4fd3e25 + 55241f5 commit 3216b1d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ public ImmutableArray<Entity> getEntities () {
return entities;
}

/**
* @return the Family used when the system was created
*/
public Family getFamily () {
return family;
}

/**
* The user should place the entity processing logic here.
* @param entity
Expand Down
7 changes: 7 additions & 0 deletions ashley/src/com/badlogic/ashley/systems/IteratingSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ public ImmutableArray<Entity> getEntities () {
return entities;
}

/**
* @return the Family used when the system was created
*/
public Family getFamily () {
return family;
}

/**
* This method is called on every entity on every update call of the EntitySystem. Override this to implement your system's
* specific processing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ public ImmutableArray<Entity> getEntities () {
return entities;
}

/**
* @return the Family used when the system was created
*/
public Family getFamily () {
return family;
}

/**
* This method is called on every entity on every update call of the EntitySystem. Override this to implement your system's
* specific processing.
Expand Down

0 comments on commit 3216b1d

Please sign in to comment.