CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2011
    Posts
    5

    Create a predefined "battle" function

    What I want to do is have a predefined battle function, I can code the function, all I need to know how to do is have the function sitting there, so when I call it, all it takes is one or two variables to set up and go. So every time I don't have to input damage calculators, defense algorithms etc.
    Help would be greatly appreciated, thanks.

  2. #2
    Join Date
    Aug 2008
    Posts
    902

    Re: Create a predefined "battle" function

    Quote Originally Posted by nathangeist View Post
    What I want to do is have a predefined battle function
    C++ isn't a dynamic language, all functions are predefined.

    Quote Originally Posted by nathangeist View Post
    how to do is have the function sitting there
    Functions don't sit.

    Quote Originally Posted by nathangeist View Post
    Help would be greatly appreciated, thanks.
    You could help us by better explaining the problem. The most I can ascertain from your original post is that you are probably trying to make some sort of RPG game, and that was purely deduction.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured