Author Topic: Code Question - List of players buildings/units  (Read 711 times)

discodowney

  • Guest
Code Question - List of players buildings/units
« on: 2 December 2010, 15:57:06 »
I just have a question about the code.

Im wondering if there is anywhere in the code where a players list of buildings and units is stored. Id imagine there is but i cant find it. For AI players its in the Ai class, obviously enough, but i cant find one for a human player. Can anyone tell me where this is?

Cheers

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Code Question - List of players buildings/units
« Reply #1 on: 2 December 2010, 20:34:29 »
entities/faction.h has a vector of units. You can use controlType to determine if the faction control is a human or CPU or network player.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

 

anything