Skip to content

Commit

Permalink
Merge pull request #321 from LynxAbraxas/dbgReentry
Browse files Browse the repository at this point in the history
Debug reentry of space plane
  • Loading branch information
MartinGuehmann committed Jul 5, 2020
2 parents c98a1fc + 7a67639 commit eb43d4d
Show file tree
Hide file tree
Showing 30 changed files with 59 additions and 180 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9155,7 +9155,7 @@ Can <L:DATABASE_ORDERS,ORDER_SPACE_LAUNCH>Space Launch<e>
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes 4 turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes {UnitDB(UnitRecord[0]).SpaceLaunch} turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7415,7 +7415,7 @@
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
̫�շɻ��Ǻ���Զ�Ĵι��<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>�������<e>���ӳ��������֮���ܹ�<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���������ӵ���ͼ�ϵ��������С�����<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���̺�ʱ 4�غϡ���Ȼ���ʺ϶̳����䣬��̫�շɻ��������ò���Ѹ�ٵִ��ͼ����һ��ʱ�����ѡ��
̫�շɻ��Ǻ���Զ�Ĵι��<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>�������<e>���ӳ��������֮���ܹ�<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���������ӵ���ͼ�ϵ��������С�����<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���̺�ʱ {UnitDB(UnitRecord[0]).SpaceLaunch}�غϡ���Ȼ���ʺ϶̳����䣬��̫�շɻ��������ò���Ѹ�ٵִ��ͼ����һ��ʱ�����ѡ��
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7361,7 +7361,7 @@ Sub-orbital launch
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes 4 turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes {UnitDB(UnitRecord[0]).SpaceLaunch} turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7480,7 +7480,7 @@ Suborbitalstarts
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
Der Raumtransporter ist ein Langstreckenfahrzeug f�r Suborbitaltransporte. Er kann von einer Stadt aus gestartet werden und bis zu f�nf Einheiten zu einer beliebigen anderen Stadt auf der Karte bef�rdern. Insgesamt dauert ein solcher <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> 4 Runden. Der Raumtransporter eignet sich nicht f�r Kurzstreckentransporte, aber wenn es darum geht, Einheiten m�glichst schnell auf die andere Seite der Karte zu bringen, ist er genau richtig.
Der Raumtransporter ist ein Langstreckenfahrzeug f�r Suborbitaltransporte. Er kann von einer Stadt aus gestartet werden und bis zu f�nf Einheiten zu einer beliebigen anderen Stadt auf der Karte bef�rdern. Insgesamt dauert ein solcher <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> {UnitDB(UnitRecord[0]).SpaceLaunch} Runden. Der Raumtransporter eignet sich nicht f�r Kurzstreckentransporte, aber wenn es darum geht, Einheiten m�glichst schnell auf die andere Seite der Karte zu bringen, ist er genau richtig.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7449,7 +7449,7 @@ Lanzamiento suborbital
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
El avi�n espacial es un veh�culo de transporte suborbital de largo alcance. Cuando se lanza desde una ciudad, puede transportar hasta cinco unidades a cualquier otra ciudad del mapa. El viaje tarda 4 turnos en completarse. Aunque no es muy apropiado para el transporte a corta distancia, se puede utilizar para mandar r�pidamente unidades a la otra parte del mapa.
El avi�n espacial es un veh�culo de transporte suborbital de largo alcance. Cuando se lanza desde una ciudad, puede transportar hasta cinco unidades a cualquier otra ciudad del mapa. El viaje tarda {UnitDB(UnitRecord[0]).SpaceLaunch} turnos en completarse. Aunque no es muy apropiado para el transporte a corta distancia, se puede utilizar para mandar r�pidamente unidades a la otra parte del mapa.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down Expand Up @@ -9990,4 +9990,4 @@ A medida que descubras un mayor territorio del mapa, encontrar
[END]

[CONCEPT_INDEPENDENTS_HISTORICAL]
[END]
[END]
Original file line number Diff line number Diff line change
Expand Up @@ -7415,7 +7415,7 @@
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
̫�շɻ��Ǻ���Զ�Ĵι��<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>�������<e>���ӳ��������֮���ܹ�<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���������ӵ���ͼ�ϵ��������С�����<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���̺�ʱ 4�غϡ���Ȼ���ʺ϶̳����䣬��̫�շɻ��������ò���Ѹ�ٵִ��ͼ����һ��ʱ�����ѡ��
̫�շɻ��Ǻ���Զ�Ĵι��<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>�������<e>���ӳ��������֮���ܹ�<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���������ӵ���ͼ�ϵ��������С�����<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���̺�ʱ {UnitDB(UnitRecord[0]).SpaceLaunch}�غϡ���Ȼ���ʺ϶̳����䣬��̫�շɻ��������ò���Ѹ�ٵִ��ͼ����һ��ʱ�����ѡ��
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7417,7 +7417,7 @@ Sub-orbital launch
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes 4 turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes {UnitDB(UnitRecord[0]).SpaceLaunch} turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7537,7 +7537,7 @@ Suborbitalstarts
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
Der Raumtransporter ist ein Langstreckenfahrzeug f�r Suborbitaltransporte. Er kann von einer Stadt aus gestartet werden und bis zu f�nf Einheiten zu einer beliebigen anderen Stadt auf der Karte bef�rdern. Insgesamt dauert ein solcher <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> 4 Runden. Der Raumtransporter eignet sich nicht f�r Kurzstreckentransporte, aber wenn es darum geht, Einheiten m�glichst schnell auf die andere Seite der Karte zu bringen, ist er genau richtig.
Der Raumtransporter ist ein Langstreckenfahrzeug f�r Suborbitaltransporte. Er kann von einer Stadt aus gestartet werden und bis zu f�nf Einheiten zu einer beliebigen anderen Stadt auf der Karte bef�rdern. Insgesamt dauert ein solcher <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> {UnitDB(UnitRecord[0]).SpaceLaunch} Runden. Der Raumtransporter eignet sich nicht f�r Kurzstreckentransporte, aber wenn es darum geht, Einheiten m�glichst schnell auf die andere Seite der Karte zu bringen, ist er genau richtig.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7449,7 +7449,7 @@ Lanzamiento suborbital
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
El avi�n espacial es un veh�culo de transporte suborbital de largo alcance. Cuando se lanza desde una ciudad, puede transportar hasta cinco unidades a cualquier otra ciudad del mapa. El viaje tarda 4 turnos en completarse. Aunque no es muy apropiado para el transporte a corta distancia, se puede utilizar para mandar r�pidamente unidades a la otra parte del mapa.
El avi�n espacial es un veh�culo de transporte suborbital de largo alcance. Cuando se lanza desde una ciudad, puede transportar hasta cinco unidades a cualquier otra ciudad del mapa. El viaje tarda {UnitDB(UnitRecord[0]).SpaceLaunch} turnos en completarse. Aunque no es muy apropiado para el transporte a corta distancia, se puede utilizar para mandar r�pidamente unidades a la otra parte del mapa.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down Expand Up @@ -9314,4 +9314,4 @@ EXPERIENCIA
[END]

[CONCEPT_SCENARIO_RULES_GAMEPLAY]
[END]
[END]
Original file line number Diff line number Diff line change
Expand Up @@ -7415,7 +7415,7 @@ Sees <L:DATABASE_UNITS,UNIT_SLAVER>ū
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
̫�շɻ��Ǻ���Զ�Ĵι��<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>�������<e>���ӳ��������֮���ܹ�<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���������ӵ���ͼ�ϵ��������С�����<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���̺�ʱ 4�غϡ���Ȼ���ʺ϶̳����䣬��̫�շɻ��������ò���Ѹ�ٵִ��ͼ����һ��ʱ�����ѡ��
̫�շɻ��Ǻ���Զ�Ĵι��<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>�������<e>���ӳ��������֮���ܹ�<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���������ӵ���ͼ�ϵ��������С�����<L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>����<e>���̺�ʱ {UnitDB(UnitRecord[0]).SpaceLaunch}�غϡ���Ȼ���ʺ϶̳����䣬��̫�շɻ��������ò���Ѹ�ٵִ��ͼ����һ��ʱ�����ѡ��
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7417,7 +7417,7 @@ Sub-orbital launch
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes 4 turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
The Space Plane is a long-range suborbital <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> vehicle. When launched from a city, it can <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> up to five units to any other city on the map. The <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> takes {UnitDB(UnitRecord[0]).SpaceLaunch} turns to complete. Although not well suited to transporting short distances, the Space Plane is ideal if you need to quickly get units the other side of the map.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down Expand Up @@ -9318,4 +9318,4 @@ SPECIAL RULES
[END]

[CONCEPT_SCENARIO_RULES_HISTORICAL]
[END]
[END]
Original file line number Diff line number Diff line change
Expand Up @@ -7537,7 +7537,7 @@ Suborbitalstarts
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
Der Raumtransporter ist ein Langstreckenfahrzeug f�r Suborbitaltransporte. Er kann von einer Stadt aus gestartet werden und bis zu f�nf Einheiten zu einer beliebigen anderen Stadt auf der Karte bef�rdern. Insgesamt dauert ein solcher <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> 4 Runden. Der Raumtransporter eignet sich nicht f�r Kurzstreckentransporte, aber wenn es darum geht, Einheiten m�glichst schnell auf die andere Seite der Karte zu bringen, ist er genau richtig.
Der Raumtransporter ist ein Langstreckenfahrzeug f�r Suborbitaltransporte. Er kann von einer Stadt aus gestartet werden und bis zu f�nf Einheiten zu einer beliebigen anderen Stadt auf der Karte bef�rdern. Insgesamt dauert ein solcher <L:DATABASE_ORDERS,ORDER_BOARD_TRANSPORT>Transport<e> {UnitDB(UnitRecord[0]).SpaceLaunch} Runden. Der Raumtransporter eignet sich nicht f�r Kurzstreckentransporte, aber wenn es darum geht, Einheiten m�glichst schnell auf die andere Seite der Karte zu bringen, ist er genau richtig.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7449,7 +7449,7 @@ Lanzamiento suborbital
[END]

[UNIT_SPACE_PLANE_GAMEPLAY]
El avi�n espacial es un veh�culo de transporte suborbital de largo alcance. Cuando se lanza desde una ciudad, puede transportar hasta cinco unidades a cualquier otra ciudad del mapa. El viaje tarda 4 turnos en completarse. Aunque no es muy apropiado para el transporte a corta distancia, se puede utilizar para mandar r�pidamente unidades a la otra parte del mapa.
El avi�n espacial es un veh�culo de transporte suborbital de largo alcance. Cuando se lanza desde una ciudad, puede transportar hasta cinco unidades a cualquier otra ciudad del mapa. El viaje tarda {UnitDB(UnitRecord[0]).SpaceLaunch} turnos en completarse. Aunque no es muy apropiado para el transporte a corta distancia, se puede utilizar para mandar r�pidamente unidades a la otra parte del mapa.
[END]

[UNIT_SPACE_PLANE_HISTORICAL]
Expand Down Expand Up @@ -9321,4 +9321,4 @@ REGLAS ESPECIALES
[END]

[CONCEPT_SCENARIO_RULES_HISTORICAL]
[END]
[END]
29 changes: 1 addition & 28 deletions ctp2_code/gs/gameobj/Army.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ void Army::KillArmy()
return;
}

CAUSE_REMOVE_ARMY cause = GetRemoveCause();

AccessData()->StopPirating(); // do not execute pirating if army gets killed

Army tmp(*this);
tmp.SetRemoveCause(cause);
tmp.RemoveAllReferences();
}

Expand All @@ -68,8 +65,7 @@ void Army::RemoveAllReferences()
Assert(Num() < 1);

if(GetOwner() >= 0 && GetData()->HasBeenAdded()) {
g_player[GetOwner()]->RemoveArmy(*this, GetRemoveCause(),
GetKiller());
g_player[GetOwner()]->RemoveArmy(*this);
}
g_selected_item->RegisterRemovedArmy(GetOwner(), *this);

Expand Down Expand Up @@ -669,19 +665,6 @@ void Army::Fight(CellUnitList &defender)
AccessData()->Fight(defender);
}

void Army::SetRemoveCause(CAUSE_REMOVE_ARMY cause)
{
AccessData()->SetRemoveCause(cause);
}

CAUSE_REMOVE_ARMY Army::GetRemoveCause() const
{
return GetData()->GetRemoveCause();
}




sint32 Army::NumOrders() const
{
return AccessData()->NumOrders();
Expand Down Expand Up @@ -778,16 +761,6 @@ void Army::IndicateAdded() const
AccessData()->IndicateAdded();
}

PLAYER_INDEX Army::GetKiller() const
{
return GetData()->GetKiller();
}

void Army::SetKiller(PLAYER_INDEX who)
{
AccessData()->SetKiller(who);
}

void Army::AddDeath(const Unit &u, CAUSE_REMOVE_ARMY cause, PLAYER_INDEX who)
{
AccessData()->AddDeath(u, cause, who);
Expand Down
5 changes: 0 additions & 5 deletions ctp2_code/gs/gameobj/Army.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ class Army : public ID

void Fight(CellUnitList &defender);

void SetRemoveCause(CAUSE_REMOVE_ARMY cause);
CAUSE_REMOVE_ARMY GetRemoveCause() const;

void ResetPos();

sint32 NumOrders() const;
Expand All @@ -266,8 +263,6 @@ class Army : public ID
bool CanMoveIntoThisTransport(const Army &transports);

void IndicateAdded() const;
PLAYER_INDEX GetKiller() const;
void SetKiller(PLAYER_INDEX who);

void AddDeath(const Unit &u, CAUSE_REMOVE_ARMY cause, PLAYER_INDEX who);

Expand Down
Loading

0 comments on commit eb43d4d

Please sign in to comment.