summaryrefslogblamecommitdiffstats
path: root/src/control/Cranes.h
blob: 9f606c9ffbf596e1e4362dcda0a62682e8b3b56b (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                 
                                                               
                                                               
                                                              

                                                                                                                    

                                       
                                          
  

                                                                          
#pragma once
#include "common.h"

class CVehicle;

class CCranes
{
public:
	static bool IsThisCarBeingTargettedByAnyCrane(CVehicle*);
	static bool IsThisCarBeingCarriedByAnyCrane(CVehicle*);
	static bool IsThisCarPickedUp(float, float, CVehicle*);
	static bool HaveAllCarsBeenCollectedByMilitaryCrane();
	static void ActivateCrane(float, float, float, float, float, float, float, float, bool, bool, float, float);
	static void DeActivateCrane(float, float);
	static void InitCranes(void);
	static void UpdateCranes(void);
	static void Save(uint8*, uint32*);
};

void CranesLoad(uint8*, uint32);	// is this really outside CCranes?