Download code/engine/faction/faction.h from HDTenEightyP/SeafarerEngine: direct link, hf CLI and curl.
- Browser
- Download file 10.7 kB
-
https://huggingface.co/HDTenEightyP/SeafarerEngine/resolve/main/code/engine/faction/faction.h
- Command line
-
hf download hf://HDTenEightyP/SeafarerEngine/code/engine/faction/faction.h
-
curl -L -o faction.h https://huggingface.co/HDTenEightyP/SeafarerEngine/resolve/main/code/engine/faction/faction.h
10.7 kB
| //Control whatever you can. | |
| //Cooperate when it's useful. | |
| //Sabotage when you can't fight openly. | |
| //Strike when you can. | |
| //Faction agents can choose between | |
| //Deterministic and Entropic choices. | |
| //Loyal vs Self-Centered Choices. | |
| //Altruistic vs Selfish Choices. | |
| //This can change based on the environment and context! This keeps things interesting and unpredictable. | |
| //11. Conspiracies that nobody controls | |
| //10. Conspiracies that don't exist | |
| //9. Elite capture | |
| //8. "Soft" rebellion | |
| //7. Administrative divisions as political actors | |
| //6. Internal diplomacy | |
| //5. Secret knowledge | |
| //4. Competing definitions of "the national interest" | |
| //3. Plausible deniability | |
| //2. Secret agreements between subnational actors | |
| //1. Informal power networks | |
| //40,075 km per 4096 px | |
| //Small surface action (4–12 ships per side): about 0.2–0.8 ships forced to retreat per hour. | |
| //Major fleet engagement (20–100+ ships involved): about 1–4 ships forced to retreat per hour during periods of active combat. | |
| //Peak moments (such as concentrated air strikes or torpedo attacks) could temporarily reach 5–10 ships per hour, but these bursts rarely lasted long. | |
| //This is the Sonic Vortex. | |
| //If I cap the velocity at 210, then it becomes much more difficult to game the system. | |
| //Key Functions of Navy BasesFleet Support and Maintenance: Provide piers, dry docks, and shipyards to perform routine maintenance, major repairs, and restocking of food, fuel, and ammunition.Operational Command: Act as headquarters and launch points for global maritime operations, combat readiness, and power projection.Aviation and Submarine Support: House specialized facilities like Naval Air Stations for aircraft squadrons and submarine bases for undersea fleets.Personnel and Training: Train sailors and support service members and their families by providing housing, medical clinics, recreational areas, and administrative command centers. | |
| //Divided by 8 per sector divided by 8 groups in each sector | |
| //Bases include: | |
| //Hanging gardens: Hot air balloon-powered farms. | |
| //Energy Rigs | |
| //Undersea Cities | |
| //Shipyards | |
| //Manufacturing Plants | |
| //Fleet Sizes | |
| //1 | |
| //2 | |
| //4 | |
| //8 | |
| //16 | |
| //32 | |
| //64 | |
| //128 | |
| //256 | |
| struct _Faction_Policy_Action | |
| { | |
| unsigned int Action_ID; | |
| struct _Universal_ID Recipient_Faction; | |
| } | |
| struct _Faction_Node_Connection | |
| { | |
| struct _Universal_ID Faction_Node_IDs[2]; | |
| double Direction; | |
| } | |
| struct _Faction_Node | |
| { | |
| struct _Universal_ID Faction_ID; | |
| struct _Universal_ID Faction_Node_ID; | |
| struct _Universal_ID Faction_Leader_ID[15]; | |
| bool Is_Led_By_A_Council; | |
| unsigned short Number_Of_Council_Members; | |
| struct _Faction_Policy_Action Current_Policy_Actions[256]; | |
| unsigned short End_Goals[2]; | |
| unsigned short Faction_Class; | |
| //Deterministic and Entropic choices. | |
| //Loyal vs Self-Centered Choices. | |
| //Altruistic vs Selfish Choices. | |
| char Deterministic_Entropic_Axis; | |
| char Loyal_Self_Centered_Axis; | |
| char Altruistic_Selfish_Axis; | |
| char Ethics_Survival_Axis; | |
| char Covert_Overt_Action_Axis; | |
| char Gullible_Paranoid_Axis; | |
| bool Leader_Power_MAKING_LAWS; | |
| bool Leader_Power_EXECUTING_FEDERAL_LAWS; | |
| bool Leader_Power_ENFORCING_FEDERAL_LAW; | |
| bool Leader_Power_NATIONAL_DEFENSE; | |
| bool Leader_Power_INTELLIGENCE_AND_NATIONAL_SECURITY; | |
| bool Leader_Power_FOREIGN_RELATIONS; | |
| bool Leader_Power_MANAGING_MONEY_AND_TAXATION; | |
| bool Leader_Power_BANKING_AND_FINANCIAL_REGULATION; | |
| bool Leader_Power_PUBLIC_HEALTH; | |
| bool Leader_Power_SOCIAL_WELFARE; | |
| bool Leader_Power_EDUCATION; | |
| bool Leader_Power_INFRASTRUCTURE_AND_TRANSPORTATION; | |
| bool Leader_Power_NATURAL_RESOURCES_AND_ENVIRONMENT; | |
| bool Leader_Power_AGRICULTURE_AND_FOOD; | |
| bool Leader_Power_SCIENCE_AND_RESEARCH; | |
| bool Leader_Power_SPACE; | |
| bool Leader_Power_DISASTER_RESPONSE; | |
| bool Leader_Power_VETERANS; | |
| bool Leader_Power_LABOR_AND_WORKPLACE_REGULATION; | |
| bool Leader_Power_CIVIL_RIGHTS_AND_DISCRIMINATION_ENFORCEMENT; | |
| bool Leader_Power_ELECTIONS_AND_DEMOCRATIC_ADMINISTRATION; | |
| bool Leader_Power_JUSTICE_AND_CONSTITUTIONAL_INTERPRETATION; | |
| bool Leader_Power_INDEPENDENT_REGULATORY_AGENCIES; | |
| bool Leader_Power_QUASI_INDEPENDENT_INSTITUTIONS; | |
| bool Leader_Power_FEDERAL_LANDS_AND_TERRITORIES; | |
| bool Leader_Power_OCCUPIED_PEOPLES_AFFAIRS; | |
| bool Leader_Power_FEDERAL_PERSONNEL_AND_ADMINISTRATION; | |
| bool Leader_Power_GOVERNMENT_OVERSIGHT; | |
| bool Leader_Power_COMMUNICATIONS_AND_INFORMATION; | |
| } | |
| struct _Faction_Array_Header | |
| { | |
| unsigned short Number_Of_Faction_Nodes; | |
| unsigned short Number_Of_Faction_Connections; | |
| int Offset_To_Faction_Nodes; | |
| int Offset_To_Faction_Connections; | |
| } | |
| struct _Faction_Node_Packet | |
| { | |
| //A ship which belongs to a node. | |
| unsigned short x; | |
| unsigned short y; | |
| struct _Universal_ID ID; | |
| struct _Universal_ID Faction_ID; | |
| struct _Universal_ID Faction_Node_ID; | |
| struct _Universal_ID Population[65536]; | |
| } | |
| //WIRELESS COMMS ARE NOT POSSIBLE BEYOND 10KM. Factions must dock at bases to communicate over undersea wire. | |
| //To get your messages, you must go to a Gordias Array. | |
| //These are living post offices with no supersonic drive and a mind and ambitions of their own. | |
| struct _Faction_Array_Object | |
| { | |
| unsigned short Number_Of_Faction_Nodes; | |
| unsigned short Number_Of_Faction_Connections; | |
| struct _Faction_Node* Faction_Nodes[65536]; | |
| struct _Faction_Node_Connection* Faction_Connections[65536]; | |
| unsigned int Number_Of_Faction_Node_Packets; | |
| struct _Faction_Node_Packet* Faction_Node_Packets[2700000]; | |
| } | |
| struct _Faction_Array_Object* Create_Faction_Array_Object(); | |
| void Initialize_Faction_Array_Object(struct _Faction_Array_Object* Faction_Array_Object); | |
| void Process_Faction_Array_Object(struct _Faction_Array_Object* Faction_Array_Object); | |