GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/eathena/adminrecv.cpp Lines: 0 38 0.0 %
Date: 2017-11-29 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2011-2017  The ManaPlus Developers
4
 *
5
 *  This file is part of The ManaPlus Client.
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License
18
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
#include "net/eathena/adminrecv.h"
22
23
#include "logger.h"
24
25
#include "net/messagein.h"
26
27
#include "debug.h"
28
29
namespace EAthena
30
{
31
32
void AdminRecv::processAdminGetLoginAck(Net::MessageIn &msg)
33
{
34
    UNIMPLEMENTEDPACKET;
35
    msg.readBeingId("account id");
36
    msg.readString(24, "login");
37
}
38
39
void AdminRecv::processSetTileType(Net::MessageIn &msg)
40
{
41
    UNIMPLEMENTEDPACKET;
42
    // +++ here need set collision tile for map
43
    msg.readInt16("x");
44
    msg.readInt16("y");
45
    msg.readInt16("type");
46
    msg.readString(16, "map name");
47
}
48
49
void AdminRecv::processAccountStats(Net::MessageIn &msg)
50
{
51
    UNIMPLEMENTEDPACKET;
52
    // +++ need show in other players stats window, nick in mStatsName
53
    msg.readUInt8("str");
54
    msg.readUInt8("need str");
55
    msg.readUInt8("agi");
56
    msg.readUInt8("need agi");
57
    msg.readUInt8("vit");
58
    msg.readUInt8("need vit");
59
    msg.readUInt8("int");
60
    msg.readUInt8("need int");
61
    msg.readUInt8("dex");
62
    msg.readUInt8("need dex");
63
    msg.readUInt8("luk");
64
    msg.readUInt8("need luk");
65
    msg.readInt16("attack");
66
    msg.readInt16("refine");
67
    msg.readInt16("matk max");
68
    msg.readInt16("matk min");
69
    msg.readInt16("item def");
70
    msg.readInt16("plus def");
71
    msg.readInt16("mdef");
72
    msg.readInt16("plus mdef");
73
    msg.readInt16("hit");
74
    msg.readInt16("flee");
75
    msg.readInt16("flee2/10");
76
    msg.readInt16("cri/10");
77
    msg.readInt16("speed");
78
    msg.readInt16("zero");
79
}
80
81
}  // namespace EAthena