UFO: Alien Invasion
Loading...
Searching...
No Matches
cp_transfer.h
Go to the documentation of this file.
1
5
6/*
7Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18See the GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23*/
24
25#pragma once
26
27#include "../../DateTime.h"
28
30#define DEFAULT_TRANSFER_TIME 2.0f
31
47
48#define TR_Foreach(var) LIST_Foreach(ccs.transfers, transfer_t, var)
49#define TR_ForeachEmployee(var, transfer, employeeType) LIST_Foreach(transfer->employees[employeeType], Employee, var)
50#define TR_ForeachAircraft(var, transfer) LIST_Foreach(transfer->aircraft, aircraft_t, var)
51
52void TR_TransferRun(void);
53void TR_NotifyAircraftRemoved(const aircraft_t* aircraft);
54
55transfer_t* TR_TransferStart(base_t* srcBase, transfer_t& transData);
56
57void TR_InitStartup(void);
58void TR_Shutdown(void);
DateTime class definition.
Alien cargo class.
Definition aliencargo.h:41
Class describing a point of time.
Definition DateTime.h:31
Item cargo class.
Definition itemcargo.h:41
@ MAX_EMPL
Definition cp_employee.h:36
void TR_InitStartup(void)
Defines commands and cvars for the Transfer menu(s).
transfer_t * TR_TransferStart(base_t *srcBase, transfer_t &transData)
Starts a transfer.
void TR_TransferRun(void)
Checks whether given transfer should be processed.
void TR_Shutdown(void)
Closing actions for transfer-subsystem.
void TR_NotifyAircraftRemoved(const aircraft_t *aircraft)
Notify that an aircraft has been removed.
An aircraft with all it's data.
A base with all it's data.
Definition cp_base.h:84
Transfer information (they are being stored in ccs.transfers).
Definition cp_transfer.h:33
bool hasItems
Definition cp_transfer.h:44
base_t * destBase
Definition cp_transfer.h:34
linkedList_t * aircraft
Definition cp_transfer.h:42
class AlienCargo * alienCargo
Definition cp_transfer.h:40
class ItemCargo * itemCargo
Definition cp_transfer.h:39
linkedList_t * employees[MAX_EMPL]
Definition cp_transfer.h:41
bool hasEmployees
Definition cp_transfer.h:45
base_t * srcBase
Definition cp_transfer.h:35
class DateTime event
Definition cp_transfer.h:36