stable, incomplete c4 action
This commit is contained in:
@@ -138,6 +138,7 @@ namespace OpenRa.Game
|
||||
switch( s )
|
||||
{
|
||||
case "Attack": return Cursor.Attack;
|
||||
case "C4": return Cursor.C4;
|
||||
case "Move":
|
||||
if (movement.CanEnterCell(location))
|
||||
return Cursor.Move;
|
||||
|
||||
@@ -23,5 +23,6 @@ namespace OpenRa.Game
|
||||
public static Cursor Enter { get { return new Cursor("enter"); } }
|
||||
public static Cursor DeployBlocked { get { return new Cursor("deploy-blocked"); } }
|
||||
public static Cursor Chronoshift { get { return new Cursor("chrono"); } }
|
||||
public static Cursor C4 { get { return new Cursor("c4"); } }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
class C4Demolition : IOrder
|
||||
{
|
||||
public C4Demolition(Actor self) { }
|
||||
|
||||
public Order IssueOrder(Actor self, int2 xy, MouseInput mi, Actor underCursor)
|
||||
{
|
||||
if (underCursor == null) return null;
|
||||
|
||||
Reference in New Issue
Block a user