Categorization hierarchy of units

Here talk about units and structures.
IMPORTANT!: Every unit type and structure type should be in a separate topic.
So if you have a new unit idea than open a new topic for it!
Post Reply
Stratego (dev)
Site Admin
Posts: 7405
Joined: Fri Apr 25, 2014 9:28 pm

Categorization hierarchy of units

Post by Stratego (dev) » Sun Nov 22, 2015 3:13 pm

The category tree is important because we can set things based on this categorization. The INDENTation shoows the parent-child relation. in a parent child relation case it is enough to put the unit into the "leaf" and it will be assigned automatically to the higher levels.

Code: Select all

		U_AIR_UNITS,
			U_PLANES_FIGHTER,
			U_PLANES_BOMBER,
		
		U_GROUND_UNITS,
			U_INFANTRY,
			U_VEHICLE,
				U_LIGHT_VEHICLE,
				U_HEAVY_VEHICLE,
			U_TANKS,
				U_TANKS_HEAVY,
				U_TANKS_LIGHT,
		
		U_WATER_UNITS,
			U_SHIPS,
				U_SHIPS_DESTROYER,
				U_SHIPS_CARRIER,
				U_SHIPS_OTHER,
			U_UBOATS,

		U_BUILDINGS,
			U_GROUND_BUILDINGS,				
			U_WATER_BUILDINGS,
			
		U_ANTI_TANK,		
		U_ANTI_AIR,
		U_ANTI_SHIP,
			
		U_TC,
		
		U_ALLIES,


User avatar
COOLguy
Posts: 3991
Joined: Sat Jul 12, 2014 2:58 am
Location: Nenuial, Arnor

Re: Categorization hierarchy of units

Post by COOLguy » Tue Dec 01, 2015 4:52 am

Expanded a bit:

Code: Select all

   U_ALL_UNITS,

      U_AIR_UNITS,
         U_PLANES_FIGHTER,
         U_PLANES_FIGHTER_BOMBER,
         U_PLANES_DIVEBOMB,
         U_PLANES_BOMBER,
         U_PLANES_TORPEDO,
         U_PLANES_NONCOMBAT,
      
      U_GROUND_UNITS,
         U_INFANTRY,
            U_INFANTRY_AT,
            U_INFANTRY_ENGINEER,
            U_INFANTRY_PARATROOP,
            U_INFANTRY_SNIPER,
            U_INFANTRY_SABOBAGE,
         U_VEHICLE,
            U_VEHICLE_LIGHT,
               U_VEHICLE_LIGHT_AA,
               U_VEHICLE_LIGHT_ARTILLERY,
            U_VEHICLE_HEAVY,
               U_VEHICLE_HEAVY_AA,
               U_VEHICLE_HEAVY_ARTILLERY,
            U_VEHICLE_NONCOMBAT,
         U_TANKS,
            U_TANKS_HEAVY,
            U_TANK_MEDIUM,
            U_TANKS_LIGHT,
            U_TANK_KILLER,
         U_ARTILLERY,
            U_ARTILLERY_AA,
            U_ARTILLERY_AT,
            U_ARTILLERY_COAST,
            U_ARTILLERY_FIELD_GUN,
      
      U_WATER_UNITS,
         U_SHIPS_SURFACE,
               U_SHIPS_DESTROYER,
               U_SHIPS_CRUISER,
                  U_SHIPS_CRUISER_LIGHT,
                  U_SHIPS_CRUISER_HEAVY,
               U_SHIPS_BATTLESHIP,
                  U_SHIPS_BATTLESHIP_DREADNOUGHT,
                  U_SHIPS_BATTLESHIPS_POCKET,
               U_SHIPS_CARRIER,
               U_SHIPS_OTHER,
                  U_SHIPS_OTHER_PT,
                  U_SHIPS_OTHER_MINESWEEPER,
         U_UBOATS,

      U_BUILDINGS,
         U_GROUND_BUILDINGS, 
            U_AIRFIELDs,           
         U_WATER_BUILDINGS,
         
      U_ANTI_TANK,      
      U_ANTI_AIR,
      U_ANTI_SHIP,
         
      U_TC,
      
      U_ALLIES,
         U_US
         U_UK
         U_FR
Thanks!
Josh

Stratego (dev)
Site Admin
Posts: 7405
Joined: Fri Apr 25, 2014 9:28 pm

Re: Categorization hierarchy of units

Post by Stratego (dev) » Sat Aug 06, 2016 9:46 pm

current:

Code: Select all

	public enum ECatTypes{
        U_AIR_UNITS,
		    	U_PLANES_FIGHTER,
		    	U_PLANES_FIGHTER_BOMBER,
		    	U_PLANES_DIVEBOMB,
				U_PLANES_BOMBER,
				U_PLANES_TORPEDO,
		 		U_PLANES_NONCOMBAT, 
		
		U_GROUND_UNITS,
			U_INFANTRY,
		            U_INFANTRY_AT,
		            U_INFANTRY_ENGINEER,
		            U_INFANTRY_PARATROOP,
		            U_INFANTRY_SNIPER,
		            U_INFANTRY_SABOTAGE, 
	         U_VEHICLE,
	            U_VEHICLE_LIGHT,
	                U_VEHICLE_LIGHT_AA,
	                U_VEHICLE_LIGHT_ARTILLERY,
	                U_VEHICLE_LIGHT_MG,
	            U_VEHICLE_HEAVY,
	                U_VEHICLE_HEAVY_AA,
	                U_VEHICLE_HEAVY_ARTILLERY,
	                U_VEHICLE_HEAVY_MG,
	            U_VEHICLE_NONCOMBAT,
		        U_VEHICLE_NONCOMBAT_TRANSPORT,
			    U_VEHICLE_NONCOMBAT_RECON,
			U_TANKS,
				U_TANKS_HEAVY,
				U_TANKS_MEDIUM,
				U_TANKS_LIGHT,
				U_TANKS_KILLER,
			U_ARTILLERY,
			    U_ARTILLERY_AA,
				U_ARTILLERY_AA_SELF_PROPELLED,
				U_ARTILLERY_AA_STANDARD,
				U_ARTILLERY_AA_PLACED,
			    U_ARTILLERY_AT,
				U_ARTILLERY_AT_SELF_PROPELLED,
				U_ARTILLERY_AT_STANDARD,
				U_ARTILLERY_AT_PLACED,
			    U_ARTILLERY_COAST,
			    U_ARTILLERY_FIELD_GUN,
				U_ARTILLERY_FIELD_GUN_HOWITZER,
		
		U_WATER_UNITS,
			U_SHIPS,
				U_SHIPS_DESTROYER,
				U_SHIPS_CARRIER,
				U_SHIPS_OTHER,
			U_UBOATS,
		
		U_BUILDINGS,
			U_GROUND_BUILDINGS,				
			U_WATER_BUILDINGS,
			
		U_ANTI_INFANTRY,	
		U_ANTI_TANK,		
		U_ANTI_AIR,
		U_ANTI_SHIP, 
		U_ANTI_UBOAT,
		
		U_TRANSPORTABLE,
		
		U_BUILDER,
			U_BUILDER_INF,
			U_BUILDER_ADV,
		
		U_TC,
		
		U_ALLIES,
		
		M_AFFECT_WATER_UNITS,
		
		UNIT_VILLAGE,
		};

Post Reply

Return to “Units & Structures (See Nations for accepted Unit nations)”