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