Hi Rohit,

If your question is about how to "get started" in terms of e.g., an
overview of the source code, how the class hierarchy is arranged,
unfortunately there isn't one really. You can try to look on
devdocs.wesnoth.org if you find that helpful. IMO the two most natural
starting points to start reading the source code of a game are usually

1.) Where is the "main" function?

In current master it is in src/wesnoth.cpp.

2.) Where is the "idle loop" which runs when I am in the game doing nothing?

In current master, this loop can be found by finding where the function
"play_slice" is called. This function polls the user-input event queues. It
is a method of the various "play_controller" objects which allocate and
destroy much of the in-game data and drive the sequence of events.

In wesnoth, another fairly natural place to try to start reading is in the
code that implements WML tags. Many of these are implemented in
src/game_events/action_wml.cpp.

Good Luck,
iceiceice

On Sun, Mar 8, 2015 at 11:38 AM, Charles Dang <[email protected]> wrote:

> Join the #wesnoth-dev IRC channel on freenode. The devs hang out there and
> we can help you in real-time.
>
> On Mon, Mar 9, 2015 at 1:59 AM, Rohit Shinde <[email protected]>
> wrote:
>
>> I did read most of the articles on the wiki. That is how I stumbled on
>> EasyCoding.  Thank you :)
>>
>> On Sun, Mar 8, 2015 at 8:03 PM, Benoît Timbert <[email protected]>
>> wrote:
>>
>>> Hello,
>>> I'm currently inactive but i can suggest some tips.
>>> - There is already a few information you can read on wiki.wesnoth.org
>>> - The best way to start contributing is to implement something
>>> (Easycoding or more complex... If you think your idea is useful probably
>>> someone else in the team will find it interesting too.) and submit a patch
>>> ... beware that after some nice patch you might became addicted and a
>>> developer
>>> - The most usual and interactive to contact the team is usually to go on
>>> irc, #wesnoth
>>> Cheers,
>>> Noyga
>>>
>>> ------------------------------
>>>
>>> *De: *"Rohit Shinde" <[email protected]>
>>> *À: *[email protected]
>>> *Envoyé: *Dimanche 8 Mars 2015 14:43:33
>>> *Objet: *[Wesnoth-dev] Contributing to Battle for Wesnoth
>>>
>>>
>>> Hi all,
>>> I want to contribute to Battle for Wesnoth. I read the wiki and I came
>>> across the EasyCoding page which got me interested in this task:
>>> http://wiki.wesnoth.org/Easycoding#Support_variable_village_healing.2C_variable_poison_properties
>>>
>>> How do I start this task?
>>>
>>> I had mailed this group in August last year. However, because of time
>>> constraints I was not able to make any contribution. Now that I have time,
>>> I hope to be able to make a contribution.
>>>
>>> Thanks in advance.
>>>
>>> _______________________________________________
>>> Wesnoth-dev mailing list
>>> [email protected]
>>> https://mail.gna.org/listinfo/wesnoth-dev
>>>
>>>
>>>
>>> _______________________________________________
>>> Wesnoth-dev mailing list
>>> [email protected]
>>> https://mail.gna.org/listinfo/wesnoth-dev
>>>
>>>
>>
>> _______________________________________________
>> Wesnoth-dev mailing list
>> [email protected]
>> https://mail.gna.org/listinfo/wesnoth-dev
>>
>>
>
> _______________________________________________
> Wesnoth-dev mailing list
> [email protected]
> https://mail.gna.org/listinfo/wesnoth-dev
>
>
_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to