- Joined
- Jan 25, 2011
- Messages
- 2,294
Hey guys.
Note that I am not looking for a way to do this in War3.
I am trying to create a system in C# where a player selects a unit and can then select an ability which the selected unit is able to cast. More or less how it is in War3.
But I am having problems wrapping my head around it. So I thought I would figure out how they have done it in War3.
So I guess in War3 the game detects when a player clicks on an ability. Is this ability (and all abilities) derived from a Base_Ability?
And when an ability is clicked how does the game know this and is the information stored anywhere?
I would really appreciate an in depth explanation of what happens from the point a player selects a unit to selecting an ability, to casting said ability.
Hope you can help me out.
P.S.
If this in the incorrect forum for this thread please move it to the appropriate forum.
Note that I am not looking for a way to do this in War3.
I am trying to create a system in C# where a player selects a unit and can then select an ability which the selected unit is able to cast. More or less how it is in War3.
But I am having problems wrapping my head around it. So I thought I would figure out how they have done it in War3.
So I guess in War3 the game detects when a player clicks on an ability. Is this ability (and all abilities) derived from a Base_Ability?
And when an ability is clicked how does the game know this and is the information stored anywhere?
I would really appreciate an in depth explanation of what happens from the point a player selects a unit to selecting an ability, to casting said ability.
Hope you can help me out.
P.S.
If this in the incorrect forum for this thread please move it to the appropriate forum.