Learn VB .NET Through Game Programming [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Learn VB .NET Through Game Programming [Electronic resources] - نسخه متنی

Matthew Tagliaferri

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید





Now That’s Reusable Stuff!

It might have taken seemingly forever to get there, but this chapter has pounded this DicePanel class into submission; you’ve created a truly reusable class. It uses encapsulation to hide as many details as possible so that the outside user of the class doesn’t need to know anything about its internal operation—the user simply adds an instance to a form, sets some properties, and off he goes.

The next chapter takes the DicePanel class and uses it in some more complex games, showing how to use the classes you build as the foundation for new, larger projects. These next games will even be fun to play for more than five seconds, I promise….





Note

You can find a final version of the dice-rolling program, named GuessTheDieRoll3, in the source code for the book. This project differs from the previous project; it uses the Toolbox version of the DicePanel class, and it uses two dice, meaning that the player has to guess a number from 2–12 rather than from 1–6.


/ 106