Skip to content

Commit

Permalink
General cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andyaiken committed Jul 9, 2021
1 parent 909b13a commit 7983ad2
Show file tree
Hide file tree
Showing 181 changed files with 927 additions and 3,806 deletions.
Binary file modified Manual.docx
Binary file not shown.
Binary file modified Manual.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion Masterplan/Controls/DeckGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Windows.Forms;

using Masterplan.Data;
using Masterplan.Events;

namespace Masterplan.Controls
{
Expand Down
1 change: 1 addition & 0 deletions Masterplan/Controls/DiceGraphPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

using Masterplan.Tools;

namespace Masterplan.Controls
Expand Down
1 change: 0 additions & 1 deletion Masterplan/Controls/DicePanel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

Expand Down
3 changes: 0 additions & 3 deletions Masterplan/Controls/Elements/EncounterPanel.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

using Utils;

using Masterplan.Data;
using Masterplan.Tools;
using Masterplan.UI;
Expand Down
1 change: 0 additions & 1 deletion Masterplan/Controls/Elements/RegionalMapPanel.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
Expand Down
1 change: 0 additions & 1 deletion Masterplan/Controls/Elements/SkillChallengePanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Windows.Forms;

using Masterplan.Data;
using Masterplan.Tools;
using Masterplan.UI;

namespace Masterplan.Controls
Expand Down
37 changes: 0 additions & 37 deletions Masterplan/Controls/FiveByFivePanel.Designer.cs

This file was deleted.

67 changes: 0 additions & 67 deletions Masterplan/Controls/FiveByFivePanel.cs

This file was deleted.

1 change: 0 additions & 1 deletion Masterplan/Controls/KeyAbilitiesPanel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
Expand Down
2 changes: 0 additions & 2 deletions Masterplan/Controls/LevelRangePanel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Windows.Forms;

using Utils;

namespace Masterplan.Controls
{
partial class LevelRangePanel : UserControl
Expand Down
3 changes: 1 addition & 2 deletions Masterplan/Controls/LibraryHelpPanel.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Windows.Forms;

using Masterplan.Tools;
Expand Down
1 change: 0 additions & 1 deletion Masterplan/Controls/TitlePanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Drawing.Imaging;
using System.Drawing.Text;
using System.Reflection;
using System.Resources;
using System.Windows.Forms;

using Utils;
Expand Down
1 change: 0 additions & 1 deletion Masterplan/Controls/TokenPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using Masterplan.Data;
using Masterplan.UI;
using System.Drawing.Drawing2D;

namespace Masterplan.Controls
{
Expand Down
2 changes: 0 additions & 2 deletions Masterplan/Data/AutoBuildData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;

using Masterplan.Tools;

namespace Masterplan.Data
{
/// <summary>
Expand Down
34 changes: 11 additions & 23 deletions Masterplan/Data/Creature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ enum DetailsField
/// Class representing a creature.
/// </summary>
[Serializable]
public class Creature : ICreature, IComparable<Creature>
public class Creature : ICreature
{
/// <summary>
/// Default constructor.
Expand Down Expand Up @@ -431,16 +431,6 @@ public Image Image
}
Image fImage = null;

/// <summary>
/// Gets or sets the Compendium URL for the creature.
/// </summary>
public string URL
{
get { return fURL; }
set { fURL = value; }
}
string fURL = "";

/// <summary>
/// Level N [role]
/// </summary>
Expand Down Expand Up @@ -470,6 +460,15 @@ public string Phenotype
}
}

/// <summary>
/// Gets a string representation of the creature.
/// </summary>
/// <returns>Returns the name of the creature, followed by level and role.</returns>
public override string ToString()
{
return fName + " (" + Info + ")";
}

/// <summary>
/// Creates a copy of the creature.
/// </summary>
Expand Down Expand Up @@ -527,26 +526,15 @@ public Creature Copy()

c.Image = fImage;

c.URL = fURL;

return c;
}

/// <summary>
/// Name (Info)
/// </summary>
/// <returns></returns>
public override string ToString()
{
return fName + " (" + Info + ")";
}

/// <summary>
/// Compares this creature to another.
/// </summary>
/// <param name="rhs">The other creature.</param>
/// <returns>Returns -1 if this creature should be sorted before the other, +1 if the other should be sorted before this; 0 otherwise.</returns>
public int CompareTo(Creature rhs)
public int CompareTo(ICreature rhs)
{
return fName.CompareTo(rhs.Name);
}
Expand Down
6 changes: 3 additions & 3 deletions Masterplan/Data/CreaturePower.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System;
using System.Collections.Generic;

using Masterplan.Tools;
using System.Drawing;
using Masterplan.Properties;
using System.IO;

using Masterplan.Properties;
using Masterplan.Tools;

namespace Masterplan.Data
{
#region Enumerations
Expand Down
12 changes: 11 additions & 1 deletion Masterplan/Data/CustomCreature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public string Phenotype
}

/// <summary>
/// Gea string representation of the creature.
/// Gets a string representation of the creature.
/// </summary>
/// <returns>Returns the name of the creature.</returns>
public override string ToString()
Expand Down Expand Up @@ -645,5 +645,15 @@ public CustomCreature Copy()

return cc;
}

/// <summary>
/// Compares this creature to another.
/// </summary>
/// <param name="rhs">The other creature.</param>
/// <returns>Returns -1 if this creature should be sorted before the other, +1 if the other should be sorted before this; 0 otherwise.</returns>
public int CompareTo(ICreature rhs)
{
return fName.CompareTo(rhs.Name);
}
}
}
4 changes: 1 addition & 3 deletions Masterplan/Data/Difficulty.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Masterplan.Data
namespace Masterplan.Data
{
/// <summary>
/// Difficulty level.
Expand Down
2 changes: 0 additions & 2 deletions Masterplan/Data/Encounter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;

using Utils;

using Masterplan.Tools;

namespace Masterplan.Data
Expand Down
9 changes: 0 additions & 9 deletions Masterplan/Data/EncounterCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2366,15 +2366,6 @@ public List<string> AsText(CombatData combat_data, CardMode mode, bool full)
content.Add("</TR>");
}

if ((c != null) && (c.URL != ""))
{
content.Add("<TR>");
content.Add("<TD colspan=3>");
content.Add("Copyright <A href=\"" + c.URL + "\">Wizards of the Coast</A> 2010");
content.Add("</TD>");
content.Add("</TR>");
}

#endregion
}

Expand Down
1 change: 1 addition & 0 deletions Masterplan/Data/EncounterLog.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;

using Utils;

namespace Masterplan.Data
Expand Down
4 changes: 2 additions & 2 deletions Masterplan/Data/Encyclopedia.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Xml.Serialization;
using System.IO;
using System.ComponentModel;
using System.Xml.Serialization;

namespace Masterplan.Data
{
Expand Down
Loading

0 comments on commit 7983ad2

Please sign in to comment.