Removed unused methods in helper classes
This commit is contained in:
parent
3b3f2a8b8b
commit
8e7250bb03
|
@ -12,16 +12,6 @@ Public MustInherit Class BasicObject
|
|||
Private _Visible As Boolean = True
|
||||
Private _DisposeReady As Boolean = False
|
||||
|
||||
''' <summary>
|
||||
''' Use the random-function to create randomized values.
|
||||
''' </summary>
|
||||
Public Random As New System.Random()
|
||||
|
||||
''' <summary>
|
||||
''' You can store a value in the Tag.
|
||||
''' </summary>
|
||||
Public Tag As New Object
|
||||
|
||||
#End Region
|
||||
|
||||
#Region "Properties"
|
||||
|
@ -98,20 +88,6 @@ Public MustInherit Class BasicObject
|
|||
End Set
|
||||
End Property
|
||||
|
||||
''' <summary>
|
||||
''' Returns a rectangle created by position, width and height of this object.
|
||||
''' </summary>
|
||||
Public Property Rectangle As Rectangle
|
||||
Get
|
||||
Return New Rectangle(CInt(Position.X), CInt(Position.Y), Width, Height)
|
||||
End Get
|
||||
Set(value As Rectangle)
|
||||
Me.Position = New Vector2(value.X, value.Y)
|
||||
Me.Width = value.Width
|
||||
Me.Height = value.Height
|
||||
End Set
|
||||
End Property
|
||||
|
||||
''' <summary>
|
||||
''' The size of this object (width and height)
|
||||
''' </summary>
|
||||
|
@ -141,12 +117,4 @@ Public MustInherit Class BasicObject
|
|||
Me._Position = Position
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Makes the object invisible and ready for disposing.
|
||||
''' </summary>
|
||||
Public Sub Remove()
|
||||
DisposeReady = True
|
||||
Visible = False
|
||||
End Sub
|
||||
|
||||
End Class
|
|
@ -26,9 +26,4 @@
|
|||
Me._Height = Height
|
||||
End Sub
|
||||
|
||||
Public Sub Input(ByVal Width As Integer, ByVal Height As Integer)
|
||||
Me._Width = Width
|
||||
Me._Height = Height
|
||||
End Sub
|
||||
|
||||
End Class
|
Loading…
Reference in New Issue