1/*
2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include "AreaInfo.h"
8
9
10AreaInfo::AreaInfo()
11	:
12	fTeam(-1),
13	fArea(-1),
14	fName(),
15	fAddress(0),
16	fSize(0),
17	fRamSize(0),
18	fLock(0),
19	fProtection(0)
20{
21}
22
23
24AreaInfo::AreaInfo(const AreaInfo &other)
25	:
26	fTeam(other.fTeam),
27	fArea(other.fArea),
28	fName(other.fName),
29	fAddress(other.fAddress),
30	fSize(other.fSize),
31	fRamSize(other.fRamSize),
32	fLock(other.fLock),
33	fProtection(other.fProtection)
34{
35}
36
37
38AreaInfo::AreaInfo(team_id team, area_id area, const BString& name,
39	target_addr_t address, target_size_t size, target_size_t ramSize,
40	uint32 lock, uint32 protection)
41	:
42	fTeam(team),
43	fArea(area),
44	fName(name),
45	fAddress(address),
46	fSize(size),
47	fRamSize(ramSize),
48	fLock(lock),
49	fProtection(protection)
50{
51}
52
53
54void
55AreaInfo::SetTo(team_id team, area_id area, const BString& name,
56	target_addr_t address, target_size_t size, target_size_t ramSize,
57	uint32 lock, uint32 protection)
58{
59	fTeam = team;
60	fArea = area;
61	fName = name;
62	fAddress = address;
63	fSize = size;
64	fRamSize = ramSize;
65	fLock = lock;
66	fProtection = protection;
67}
68