Project Hoshimi Documented Class Library
Needle Class
NamespacesPH.CommonNeedle

Class representing a Needle

Declaration Syntax
C#Visual BasicVisual C++
public class Needle : Defender
Public Class Needle _
	Inherits Defender
public ref class Needle : public Defender
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
Needle()()()
BotInfo
Informations about the bot.
(Inherited from Bot.)
BotType
return the type of the bot.
(Inherited from Bot.)
BuildOnHoshimiPoint
Return true if the Needle is on a HoshimiPoint

CollectTransfertSpeed
Number of OXY transfered while collecting or transfering in one turn.
(Inherited from Bot.)
Constitution
Number of hit points of the bot when it is created.
(Inherited from Bot.)
ContainerCapacity
Maximum number of OXY this bot can carry
(Inherited from Bot.)
DefendTo(Point, Int32)
Use this method to defend a location
(Inherited from Defender.)
DefenseDistance
Maximum distance of a defense. If bot try to defend greater than this value, defense is not valid (and canceled)
(Inherited from Bot.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
ForceAutoDestruction()()()
Allow you to destroy your bot directly
(Inherited from Bot.)
GetHashCode()()()
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
HitPoint
Number of hit points of the bot. If equal or less than 0, it is destroyed.
(Inherited from Bot.)
ID
Unique ID for this bot (you can identify it with this Guid)
(Inherited from Bot.)
InternalName
Name used by the Viewer to show the name of the bot
(Inherited from Bot.)
Location
Point on the map where is located the bot
(Inherited from Bot.)
MaxDamage
Maximum numbers of damage of defense in one turn. Number of damage is determined randomly by the Game Engine at each turn of a defense. This number is between 0 and MaxDamage.
(Inherited from Bot.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
PlayerID
ID of the Player
(Inherited from Bot.)
PlayerOwner
Reference to the Player instance owner of this bot
(Inherited from Bot.)
PointInfo
Point used for different operation. While moving, it is the point at the end of the movement. While defending, it is the point where it shoot. While Transfering, it must be the location of the Needle where it want to tranfer OXY. While Collecting, it must be the point where OXY Landing point is.
(Inherited from Bot.)
Scan
Scan distance. If an enemie is nearer than this value, it is seen by this bot (and added to the OtherbotsInfo property of the Player)
(Inherited from Bot.)
Score
Score of this Needle.

Shield
Intensity of the shield of the bot.
(Inherited from Bot.)
State
State of the bot
(Inherited from Bot.)
Stock
Number of OXY in its container.
(Inherited from Bot.)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
needles can't move. They can defend and Stock OXY. You gain points when a Needle contains OXY and is located on a Hoshimi Point
Inheritance Hierarchy

Assembly: PH.Common (Module: PH.Common) Version: 6.0.0.0