Skip to main content
replaced http://gamedev.stackexchange.com/ with https://gamedev.stackexchange.com/
Source Link

According to When and why is a Pool class needed to hold objects?When and why is a Pool class needed to hold objects?, pools are used when the number of "instances" of an object fluctuates. However, StarWarrior (the Artemis example) uses a pool for the player (of which there is always only one) and no pool for the enemies (which fluctuate and which more exist).

So what is the deal with pools?

Specifically:

  • What are pools?
  • Why are pools?
  • Where are pools?
  • What is the difference between AddComponentFromPool and AddComponent (from
    Artemis)?
  • What is the difference between extending IComponent and ComponentPoolable (from Artemis)?

According to When and why is a Pool class needed to hold objects?, pools are used when the number of "instances" of an object fluctuates. However, StarWarrior (the Artemis example) uses a pool for the player (of which there is always only one) and no pool for the enemies (which fluctuate and which more exist).

So what is the deal with pools?

Specifically:

  • What are pools?
  • Why are pools?
  • Where are pools?
  • What is the difference between AddComponentFromPool and AddComponent (from
    Artemis)?
  • What is the difference between extending IComponent and ComponentPoolable (from Artemis)?

According to When and why is a Pool class needed to hold objects?, pools are used when the number of "instances" of an object fluctuates. However, StarWarrior (the Artemis example) uses a pool for the player (of which there is always only one) and no pool for the enemies (which fluctuate and which more exist).

So what is the deal with pools?

Specifically:

  • What are pools?
  • Why are pools?
  • Where are pools?
  • What is the difference between AddComponentFromPool and AddComponent (from
    Artemis)?
  • What is the difference between extending IComponent and ComponentPoolable (from Artemis)?

According to When and why is a Pool class needed to hold objects?, Poolspools are used when the number of "instances" of an object fluxuatefluctuates. HoweverHowever, StarWarrior (the Artemis example) uses a Poolpool for the Playerplayer (of which there is always only one) and no Poolpool for the Enemiesenemies (which fluxuatefluctuate and which more exist).

So what is the deal with Poolspools?

Specifically:

  • What are Poolspools?
  • Why are Poolspools?
  • Where are Poolspools?
  • What is the difference between AddComponentFromPool and AddComponent (from
    Artemis)?
  • What is the difference between extending IComponent and ComponentPoolable (from Artemis)?

According to When and why is a Pool class needed to hold objects?, Pools are used when the number of "instances" of an object fluxuate. However, StarWarrior (the Artemis example) uses a Pool for the Player (of which there is always one) and no Pool for the Enemies (which fluxuate).

So what is the deal with Pools?

Specifically:

  • What are Pools?
  • Why are Pools?
  • Where are Pools?
  • What is the difference between AddComponentFromPool and AddComponent (from
    Artemis)?
  • What is the difference between extending IComponent and ComponentPoolable (from Artemis)?

According to When and why is a Pool class needed to hold objects?, pools are used when the number of "instances" of an object fluctuates. However, StarWarrior (the Artemis example) uses a pool for the player (of which there is always only one) and no pool for the enemies (which fluctuate and which more exist).

So what is the deal with pools?

Specifically:

  • What are pools?
  • Why are pools?
  • Where are pools?
  • What is the difference between AddComponentFromPool and AddComponent (from
    Artemis)?
  • What is the difference between extending IComponent and ComponentPoolable (from Artemis)?
Post Closed as "Duplicate" by House
Source Link
Evorlor
  • 5.9k
  • 9
  • 59
  • 101

What is a Pool?

According to When and why is a Pool class needed to hold objects?, Pools are used when the number of "instances" of an object fluxuate. However, StarWarrior (the Artemis example) uses a Pool for the Player (of which there is always one) and no Pool for the Enemies (which fluxuate).

So what is the deal with Pools?

Specifically:

  • What are Pools?
  • Why are Pools?
  • Where are Pools?
  • What is the difference between AddComponentFromPool and AddComponent (from
    Artemis)?
  • What is the difference between extending IComponent and ComponentPoolable (from Artemis)?