initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
40
libs/wxWidgets-3.3.1/demos/life/reader.h
Normal file
40
libs/wxWidgets-3.3.1/demos/life/reader.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: reader.h
|
||||
// Purpose: Life! pattern reader (writer coming soon)
|
||||
// Author: Guillermo Rodriguez Garcia, <guille@iies.es>
|
||||
// Created: Jan/2000
|
||||
// Copyright: (c) 2000, Guillermo Rodriguez Garcia
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _LIFE_READER_H_
|
||||
#define _LIFE_READER_H_
|
||||
|
||||
#include "game.h"
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// LifeReader
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
class LifeReader
|
||||
{
|
||||
public:
|
||||
LifeReader(wxInputStream& is);
|
||||
|
||||
inline bool IsOk() const { return m_ok; }
|
||||
inline wxString GetDescription() const { return m_description; }
|
||||
inline wxString GetRules() const { return m_rules; }
|
||||
inline wxArrayString GetShape() const { return m_shape; }
|
||||
inline LifePattern GetPattern() const
|
||||
{
|
||||
return LifePattern(wxEmptyString, m_description, m_rules, m_shape);
|
||||
}
|
||||
|
||||
private:
|
||||
bool m_ok;
|
||||
wxString m_description;
|
||||
wxString m_rules;
|
||||
wxArrayString m_shape;
|
||||
};
|
||||
|
||||
#endif // _LIFE_READER_H_
|
||||
Reference in New Issue
Block a user