Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// File: simplestack.h
|
||||
//
|
||||
// Desc: see main.cpp
|
||||
//
|
||||
// Copyright (c) 1999-2001 Microsoft Corp. All rights reserved.
|
||||
//-----------------------------------------------------------------------------
|
||||
#ifndef _SIMPLE_STACK_H
|
||||
#define _SIMPLE_STACK_H
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name:
|
||||
// Desc:
|
||||
//-----------------------------------------------------------------------------
|
||||
template< class Item , DWORD size > class SimpleStack
|
||||
{
|
||||
public:
|
||||
SimpleStack()
|
||||
{
|
||||
m_dwCount = 0;
|
||||
};
|
||||
|
||||
void Push( const Item& item )
|
||||
{
|
||||
m_Stack[m_dwCount++] = item;
|
||||
};
|
||||
|
||||
Item Pop()
|
||||
{
|
||||
return m_Stack[--m_dwCount];
|
||||
};
|
||||
|
||||
DWORD GetCount() const
|
||||
{
|
||||
return m_dwCount;
|
||||
};
|
||||
|
||||
void Empty()
|
||||
{
|
||||
m_dwCount = 0;
|
||||
};
|
||||
|
||||
private:
|
||||
Item m_Stack[size];
|
||||
DWORD m_dwCount;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user