comparison Party.cpp @ 788:f004c7ceb7bd

Слияние
author Ritor1
date Mon, 25 Mar 2013 02:21:14 +0600
parents b27dd658ea77
children 0f56abdcce94
comparison
equal deleted inserted replaced
787:3a77fbf7d0b8 788:f004c7ceb7bd
26 26
27 struct ActionQueue *pPartyActionQueue = new ActionQueue; 27 struct ActionQueue *pPartyActionQueue = new ActionQueue;
28 28
29 29
30 30
31 // inlined
32 //----- (mm6c::004858D0) --------------------------------------------------
33 void Party::Zero()
34 {
35
36 uFlags2 = 0;
37 uNumGoldInBank = 0;
38
39 uCurrentYear = 0;
40 uCurrentMonth = 0;
41 uCurrentMonthWeek = 0;
42 uDaysPlayed = 0;
43 uCurrentHour = 0;
44 uCurrentMinute = 0;
45 uCurrentTimeSecond = 0;
46
47 field_6FC = 0;
48 days_played_without_rest = 0;
49
50 vPosition.y = 0;
51 vPosition.z = 0;
52 vPosition.x = 0;
53 uFallStartY = 0;
54 sRotationY = 0;
55 sRotationX = 0;
56 uFallSpeed = 0;
57 field_28 = 0;
58 uDefaultPartyHeight = 120;
59 field_14 = 37;
60 y_rotation_granularity = 25;
61 uWalkSpeed = 384;
62 y_rotation_speed = 90;
63 field_24 = 5;
64 field_6FC = 0;
65 field_708 = 15;
66 field_0 = 25;
67 }
68
69 //inlined
70 //----- (mm6c::0045BE90) --------------------------------------------------
71 void ActionQueue::Reset()
72 {
73 uNumActions = 0;
74 }
31 75
32 //----- (004760C1) -------------------------------------------------------- 76 //----- (004760C1) --------------------------------------------------------
33 void ActionQueue::Add(PartyAction action) 77 void ActionQueue::Add(PartyAction action)
34 { 78 {
35 if (uNumActions < 30) 79 if (uNumActions < 30)
528 PLAYER_SEX v9; // cl@12 572 PLAYER_SEX v9; // cl@12
529 //Player *v12; // edx@17 573 //Player *v12; // edx@17
530 //signed int v13; // edi@18 574 //signed int v13; // edi@18
531 SpellBuff *v14; // ebx@21 575 SpellBuff *v14; // ebx@21
532 signed int v15; // edi@21 576 signed int v15; // edi@21
577
578 Zero();
533 579
534 field_708 = 15; 580 field_708 = 15;
535 sEyelevel = 160; 581 sEyelevel = 160;
536 uFlags2 = 0;
537 uNumGold = 200; 582 uNumGold = 200;
538 uNumGoldInBank = 0;
539 uNumFoodRations = 7; 583 uNumFoodRations = 7;
540 584
585
541 alignment = PartyAlignment_Neutral; 586 alignment = PartyAlignment_Neutral;
542 SetUserInterface(alignment, true); 587 SetUserInterface(alignment, true);
543 588
544 uTimePlayed = 0x21C00u; 589 uTimePlayed = 0x21C00u;
545 uLastRegenerationTime = 0x21C00; 590 uLastRegenerationTime = 0x21C00;