Esempio n. 1
0
 public void SetAlliance(JassPlayer other, JassAllianceType alliance, Boolean flag)
 {
     SafeNatives.SetPlayerAlliance(this, other, alliance, flag);
 }
Esempio n. 2
0
 public Int32 GetTaxRate(JassPlayer other, JassPlayerState resource)
 {
     return(SafeNatives.GetPlayerTaxRate(this, other, resource));
 }
Esempio n. 3
0
 public void SetTaxRate(JassPlayer other, JassPlayerState resource, Int32 rate)
 {
     SafeNatives.SetPlayerTaxRate(this, other, resource, rate);
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a unit.
 /// </summary>
 /// <param name="player">The owner of the unit.</param>
 /// <param name="unitname">The name of the unit type.</param>
 /// <param name="x">The position of the unit.</param>
 /// <param name="y">The position of the unit.</param>
 /// <param name="facing">The facing of the unit.</param>
 /// <returns>A unit.</returns>
 public static JassUnit Create(JassPlayer player, String unitname, Single x, Single y, Single facing)
 {
     return(SafeNatives.CreateUnitByName(player, unitname, x, y, facing));
 }
Esempio n. 5
0
 /// <summary>
 /// Creates a dead unit.
 /// </summary>
 /// <param name="player">The owner of the unit.</param>
 /// <param name="unitId">The id of the unit type.</param>
 /// <param name="x">The position of the unit.</param>
 /// <param name="y">The position of the unit.</param>
 /// <param name="facing">The facing of the unit.</param>
 /// <returns>A unit.</returns>
 public static JassUnit CreateCorpse(JassPlayer player, JassObjectId unitid, Single x, Single y, Single facing)
 {
     return(SafeNatives.CreateCorpse(player, unitid, x, y, facing));
 }
Esempio n. 6
0
 public void SetPlayer(JassPlayer player, Boolean changeColor)
 {
     SafeNatives.SetItemPlayer(this, player, changeColor);
 }
Esempio n. 7
0
 public void SetPlayer(JassPlayer player)
 {
     SafeNatives.SetItemPlayer(this, player, false);
 }
Esempio n. 8
0
 public JassEvent RegisterPlayerStateEvent(JassPlayer player, JassPlayerState state, JassLimitOp opcode, Single value)
 {
     return(SafeNatives.TriggerRegisterPlayerStateEvent(this, player, state, opcode, value));
 }
Esempio n. 9
0
 public JassEvent RegisterPlayerAllianceChange(JassPlayer player, JassAllianceType allianceType)
 {
     return(SafeNatives.TriggerRegisterPlayerAllianceChange(this, player, allianceType));
 }
Esempio n. 10
0
 public JassEvent RegisterPlayerUnitEvent(JassPlayer player, JassPlayerUnitEvent playerUnitEvent, JassBooleanExpression filter)
 {
     return(SafeNatives.TriggerRegisterPlayerUnitEvent(this, player, playerUnitEvent, filter));
 }
Esempio n. 11
0
 public JassEvent RegisterPlayerEvent(JassPlayer player, JassPlayerEvent playerEvent)
 {
     return(SafeNatives.TriggerRegisterPlayerEvent(this, player, playerEvent));
 }
Esempio n. 12
0
 public JassEvent RegisterPlayerChatEvent(JassPlayer player, String message, Boolean exactMatchOnly)
 {
     return(SafeNatives.TriggerRegisterPlayerChatEvent(this, player, message, exactMatchOnly));
 }